Drag[en]gine Script Module DragonScript Script API  1.0
WidgetInputProcessor Class Reference
Inheritance diagram for WidgetInputProcessor:
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)
 
WidgetInputProcessor new (Widget widget)
 
- 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

Forwards input to a widget.

Author
Roland Pl├╝ss
Version
1.0

Member Function Documentation

§ eventKeyPress()

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

Process a key press event.

Implements InputProcessor.

§ eventKeyRelease()

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

Process a key release event.

Implements InputProcessor.

§ eventKeyType()

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

Process a key type event.

Implements InputProcessor.

§ eventMouseMove()

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

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

Implements InputProcessor.

§ eventMousePress()

void eventMousePress ( int  button,
int  modifiers 
)

Process a mouse button press event.

Implements InputProcessor.

§ eventMouseRelease()

void eventMouseRelease ( int  button,
int  modifiers 
)

Process a mouse button release event.

Implements InputProcessor.

§ new()

WidgetInputProcessor new ( Widget  widget)

Creates a new input processor.


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