|
gramods
|
Base type for event adaptors providing means to input events from different platforms and window libraries. More...
#include <TouchState.hh>

Public Member Functions | |
| virtual void | init (int, int) |
| Called by the owner (TouchState) when eventsInit is called. | |
| virtual void | done () |
| Called by the owner (TouchState) when eventsDone is called. | |
Protected Member Functions | |
| void | addTouchState (TouchPointId id, float x, float y) |
| Adds a touch point sample. | |
| void | removeTouchState (TouchPointId id, float x, float y) |
| Removes the touch point with the specified id. | |
| void | addMouseState (float x, float y, bool mouse_down) |
| Add the specified mouse state. | |
| void | addMouseWheel (float s) |
| Sets the wheel value, positive up and negative down. | |
Base type for event adaptors providing means to input events from different platforms and window libraries.
Get the platform/library dependent adaptor by calling getEventAdaptor.
|
protected |
Add the specified mouse state.
This will also add and remove simulated touch states.
|
protected |
Sets the wheel value, positive up and negative down.
|
protected |
Adds a touch point sample.
| id | The id of the touch point |
| x | position in (sub) pixels from left edge. |
| y | position in (sub) pixels from top edge. |
|
virtual |
Called by the owner (TouchState) when eventsDone is called.
Reimplemented in gramods::gmTouch::SDLEventAdaptor.
|
virtual |
Called by the owner (TouchState) when eventsInit is called.
Reimplemented in gramods::gmTouch::SDLEventAdaptor.
|
protected |
Removes the touch point with the specified id.