|
Public Member Functions |
| | EventAdapter () |
| virtual | ~EventAdapter () |
| virtual EventType | getEventType () const |
| | Get the EventType of the GUI event.
|
| virtual int | getKey () const |
| | key pressed, return -1 if inappropriate for this event.
|
| virtual int | getButton () const |
| | button pressed/released, return -1 if inappropriate for this event.
|
| virtual float | getXmin () const |
| | window minimum x.
|
| virtual float | getXmax () const |
| | window maximum x.
|
| virtual float | getYmin () const |
| | window minimum y.
|
| virtual float | getYmax () const |
| | window maximum y.
|
| virtual float | getX () const |
| | current mouse x position.
|
| virtual float | getY () const |
| | current mouse y position.
|
| virtual unsigned int | getButtonMask () const |
| | current mouse button state
|
| virtual double | time () const |
| | time in seconds of event.
|
| virtual unsigned int | getModKeyMask () const |
| | current modkey state
|
| void | adaptResize (double t, float Xmin, float Ymin, float Xmax, float Ymax) |
| | method for adapting resize events.
|
| void | adaptMouseScroll (double t, Producer::KeyboardMouseCallback::ScrollingMotion sm) |
| | method for adapting mouse scroll wheel events.
|
| void | adaptMouseMotion (double t, float x, float y) |
| | method for adapting mouse motion events whilst mouse buttons are pressed.
|
| void | adaptButtonPress (double t, float x, float y, unsigned int button) |
| void | adaptButtonRelease (double t, float x, float y, unsigned int button) |
| void | adaptKeyPress (double t, Producer::KeySymbol key) |
| | method for adapting keyboard events.
|
| void | adaptKeyRelease (double t, Producer::KeySymbol key) |
| void | adaptFrame (double t) |
| | method for adapting frame events, i.e.
|
| void | copyStaticVariables () |
Static Public Member Functions |
| static void | setWindowSize (float Xmin, float Ymin, float Xmax, float Ymax) |
| | static method for setting window dimensions.
|
| static void | setButtonMask (unsigned int buttonMask) |
| | static method for setting button state.
|
Static Public Attributes |
| static unsigned int | _s_accumulatedButtonMask = 0 |
| static int | _s_button = 0 |
| static float | _s_Xmin = 0 |
| static float | _s_Xmax = 1280 |
| static float | _s_Ymin = 0 |
| static float | _s_Ymax = 1024 |
| static float | _s_mx = 0 |
| static float | _s_my = 0 |
| static int | _s_modKeyMask = 0 |
Protected Attributes |
| EventType | _eventType |
| int | _key |
| int | _button |
| float | _Xmin |
| float | _Xmax |
| float | _Ymin |
| float | _Ymax |
| float | _mx |
| float | _my |
| unsigned int | _buttonMask |
| unsigned int | _modKeyMask |
| double | _time |