InputEvent Class Reference
#include <InputEvent.hh>
Detailed Description
InputEvent ClassPublic Types | |
| enum | Type { KEY_PRESS, KEY_RELEASE, MOUSE_PRESS, MOUSE_RELEASE, MOUSE_DRAG } |
| Types of events. | |
| enum | MouseButton { NONE, LEFT_MOUSE, RIGHT_MOUSE, MIDDLE_MOUSE } |
| Mouse buttons. | |
Public Member Functions | |
| InputEvent () | |
| virtual | ~InputEvent () |
| void | SetType (Type t) |
| Type | GetType () const |
| void | SetKey (int k) |
| int | GetKey () const |
| void | SetMousePos (const Vector2< int > pos) |
| Vector2< int > | GetMousePos () const |
| void | SetMouseButton (MouseButton button) |
| MouseButton | GetMouseButton () const |
Constructor & Destructor Documentation
| InputEvent | ( | ) |
Constructor
| virtual ~InputEvent | ( | ) | [virtual] |
Destructor
Member Function Documentation
| void SetType | ( | Type | t | ) |
Set the type of event
| Type GetType | ( | ) | const |
Get the type of event
| void SetKey | ( | int | k | ) |
Set the key pressed or released
| int GetKey | ( | ) | const |
Get the key pressed of released
| void SetMousePos | ( | const Vector2< int > | pos | ) |
Set the mouse position
| Vector2<int> GetMousePos | ( | ) | const |
Get the mouse position
| void SetMouseButton | ( | MouseButton | button | ) |
Set the mouse button that was pressed/released
| MouseButton GetMouseButton | ( | ) | const |
Get the mouse button that was pressed/released
The documentation for this class was generated from the following file: