TDME2 1.9.121
Public Member Functions | List of all members
InputEventHandler Class Referenceabstract

Application input event handler interface. More...

#include <tdme/application/InputEventHandler.h>

Inheritance diagram for InputEventHandler:
Inheritance graph
Collaboration diagram for InputEventHandler:
Collaboration graph

Public Member Functions

virtual ~InputEventHandler ()
 Destructor. More...
 
virtual void onChar (unsigned int key, int x, int y)=0
 On char. More...
 
virtual void onKeyDown (unsigned char key, int keyCode, int x, int y)=0
 On key down. More...
 
virtual void onKeyUp (unsigned char key, int keyCode, int x, int y)=0
 On key up. More...
 
virtual void onMouseDragged (int x, int y)=0
 On mouse dragged. More...
 
virtual void onMouseMoved (int x, int y)=0
 On mouse moved. More...
 
virtual void onMouseButton (int button, int state, int x, int y)=0
 On mouse moved. More...
 
virtual void onMouseWheel (int button, int direction, int x, int y)=0
 On mouse wheen. More...
 

Detailed Description

Application input event handler interface.

Author
Andreas Drewke
Version
$Id$

Definition at line 12 of file InputEventHandler.h.

Constructor & Destructor Documentation

◆ ~InputEventHandler()

~InputEventHandler ( )
virtual

Destructor.

Definition at line 11 of file InputEventHandler.cpp.

Member Function Documentation

◆ onChar()

virtual void onChar ( unsigned int  key,
int  x,
int  y 
)
pure virtual

On char.

Parameters
keykey
xx
yy

Implemented in GUI.

◆ onKeyDown()

virtual void onKeyDown ( unsigned char  key,
int  keyCode,
int  x,
int  y 
)
pure virtual

On key down.

Parameters
keykey
keyCodekey code
xx
yy

Implemented in GUI.

◆ onKeyUp()

virtual void onKeyUp ( unsigned char  key,
int  keyCode,
int  x,
int  y 
)
pure virtual

On key up.

Parameters
keykey
keyCodekey code
xx
yy

Implemented in GUI.

◆ onMouseButton()

virtual void onMouseButton ( int  button,
int  state,
int  x,
int  y 
)
pure virtual

On mouse moved.

Parameters
buttonbutton
statestate
xx
yy

Implemented in GUI.

◆ onMouseDragged()

virtual void onMouseDragged ( int  x,
int  y 
)
pure virtual

On mouse dragged.

Parameters
xx
yy

Implemented in GUI.

◆ onMouseMoved()

virtual void onMouseMoved ( int  x,
int  y 
)
pure virtual

On mouse moved.

Parameters
xx
yy

Implemented in GUI.

◆ onMouseWheel()

virtual void onMouseWheel ( int  button,
int  direction,
int  x,
int  y 
)
pure virtual

On mouse wheen.

Parameters
buttonbutton
directiondirection
xx
yy

Implemented in GUI.


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