Search in sources :

Example 1 with KeyTypeEvent

use of net.catacombsnatch.game.event.input.events.KeyTypeEvent in project Catacomb-Snatch by Catacomb-Snatch.

the class InputManager method keyTyped.

@Override
public boolean keyTyped(char character) {
    Scene scene = SceneManager.getCurrent();
    if (scene != null)
        scene.keyTyped(character);
    KeyTypeEvent event = new KeyTypeEvent(InputSource.KEYBOARD, character);
    EventManager.callEvent(event);
    return true;
}
Also used : KeyTypeEvent(net.catacombsnatch.game.event.input.events.KeyTypeEvent) Scene(net.catacombsnatch.game.scene.Scene)

Aggregations

KeyTypeEvent (net.catacombsnatch.game.event.input.events.KeyTypeEvent)1 Scene (net.catacombsnatch.game.scene.Scene)1