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

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)
 
BindingInputProcessor new (BindingManager bindingManager)
 
- Public Member Functions inherited from DefaultInputProcessor
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

Looks inputs up in the key binding manager of the current game modification and executes them.

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()

BindingInputProcessor new ( BindingManager  bindingManager)

Creates a new BindingInputProcessor object.

Parameters
bindingManagerBinding manager to use

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