#include <mouseinputdevice.hpp>
Inheritance diagram for MouseInputDevice:
Public Member Functions | |
MouseInputDevice () | |
Constructor. | |
~MouseInputDevice () | |
Destructor. | |
int | getLastButton () const |
Get the last mouse button pressed. | |
Protected Member Functions | |
bool | poll () |
Poll the mouse for pressed buttons. | |
bool | handle (vector< bool > &states) |
InputDevice::handle(). | |
Protected Attributes | |
int | lastButton |
last button pressed |
Definition at line 26 of file mouseinputdevice.hpp.
|
Constructor. Definition at line 25 of file mouseinputdevice.cpp. |
|
Destructor. Definition at line 33 of file mouseinputdevice.cpp. |
|
Get the last mouse button pressed. Usually 1 is the left mouse button, 2 the right one and 3 the middle mouse button.
References lastButton. |
|
Reimplemented from InputDevice. Definition at line 68 of file mouseinputdevice.cpp. |
|
Poll the mouse for pressed buttons.
Reimplemented from InputDevice. Definition at line 41 of file mouseinputdevice.cpp. References PtfCore::getScheduler(), Singleton< PtfCore >::getSingleton(), lastButton, and Scheduler::quit(). Here is the call graph for this function: ![]() |
|
last button pressed Definition at line 28 of file mouseinputdevice.hpp. Referenced by getLastButton(), and poll(). |