Drag[en]gine Script Module DragonScript Script API  1.0
InputProcessor Interface Reference
Inheritance diagram for InputProcessor:
DefaultInputProcessor 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)
 

Detailed Description

Processes input from the player.

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

Implemented in ConversationInputProcessor, BindingInputProcessor, WidgetInputProcessor, and DefaultInputProcessor.

§ 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

Implemented in ConversationInputProcessor, BindingInputProcessor, DefaultInputProcessor, and WidgetInputProcessor.

§ 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

Implemented in ConversationInputProcessor, BindingInputProcessor, DefaultInputProcessor, and WidgetInputProcessor.

§ 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

Implemented in ConversationInputProcessor, BindingInputProcessor, DefaultInputProcessor, and WidgetInputProcessor.

§ eventMousePress()

void eventMousePress ( int  button,
int  modifiers 
)

Process a mouse button press event.

Parameters
buttonMouse button pressed
modifiersModifier keys pressed

Implemented in ConversationInputProcessor, BindingInputProcessor, DefaultInputProcessor, and WidgetInputProcessor.

§ eventMouseRelease()

void eventMouseRelease ( int  button,
int  modifiers 
)

Process a mouse button release event.

Parameters
buttonMouse button released
modifiersModifier keys pressed

Implemented in ConversationInputProcessor, BindingInputProcessor, DefaultInputProcessor, and WidgetInputProcessor.


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