Drag[en]gine Script Module DragonScript Script API  1.0
DefaultInputProcessor Class Reference
Inheritance diagram for DefaultInputProcessor:
InputProcessor BindingInputProcessor ConversationInputProcessor WidgetInputProcessor

Public Member Functions

void eventKeyPress (int keycode, int modifiers, int keychar)
 
void eventKeyRelease (int keycode, int modifiers, int keychar)
 
void eventKeyType (int keycode, int modifiers, int keychar)
 
void eventMouseMove (int dx, int dy, int button, int modifiers)
 
void eventMousePress (int button, int modifiers)
 
void eventMouseRelease (int button, int modifiers)
 
DefaultInputProcessor new ()
 

Detailed Description

Default implementation of InputProcessor.

Author
Roland Pl├╝ss
Version
1.0

Member Function Documentation

§ eventKeyPress()

void eventKeyPress ( int  keycode,
int  modifiers,
int  keychar 
)

Process a key press event.

Parameters
keycodeCode of the key
modifiersModifier keys pressed
keycharCharacter value of the key

Implements InputProcessor.

§ eventKeyRelease()

void eventKeyRelease ( int  keycode,
int  modifiers,
int  keychar 
)

Process a key release event.

Parameters
keycodeCode of the key
modifiersModifier keys pressed
keycharCharacter value of the key

Implements InputProcessor.

§ eventKeyType()

void eventKeyType ( int  keycode,
int  modifiers,
int  keychar 
)

Process a key type event.

Parameters
keycodeCode of the key
modifiersModifier keys pressed
keycharCharacter value of the key

Implements InputProcessor.

§ eventMouseMove()

void eventMouseMove ( int  dx,
int  dy,
int  button,
int  modifiers 
)

Process a mouse move event. Forwards to the current game modification.

Parameters
dxRelative movement in x direction
dyRelative movement in y direction
buttonMouse button released
modifiersModifier keys pressed

Implements InputProcessor.

§ eventMousePress()

void eventMousePress ( int  button,
int  modifiers 
)

Process a mouse button press event.

Parameters
buttonMouse button pressed
modifiersModifier keys pressed

Implements InputProcessor.

§ eventMouseRelease()

void eventMouseRelease ( int  button,
int  modifiers 
)

Process a mouse button release event.

Parameters
buttonMouse button released
modifiersModifier keys pressed

Implements InputProcessor.

§ new()

Creates a new DefaultInputProcessor object.


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