Drag[en]gine Script Module DragonScript Script API  1.0
KeyListener Interface Reference

Interface for handling keyboard input events. More...

Inheritance diagram for KeyListener:
DefaultKeyListener

Public Member Functions

void onKeyPress (KeyEvent event)
 Keyboard key has been pressed. More...
 
void onKeyRelease (KeyEvent event)
 Keyboard key has been released. More...
 
void onKeyType (KeyEvent event)
 Keyboard key has been typed. More...
 

Detailed Description

Interface for handling keyboard input events.

Author
Roland Plüss
Roland Plüss
Version
1.0
Date
2015

Member Function Documentation

§ onKeyPress()

void onKeyPress ( KeyEvent  event)

Keyboard key has been pressed.

Implemented in DefaultKeyListener.

§ onKeyRelease()

void onKeyRelease ( KeyEvent  event)

Keyboard key has been released.

Implemented in DefaultKeyListener.

§ onKeyType()

void onKeyType ( KeyEvent  event)

Keyboard key has been typed.

This happens if a key is pressed and released. If the key is not a displayable character or the typed character is not complete no type event is send.

Implemented in DefaultKeyListener.


The documentation for this interface was generated from the following file: