#include <mouseinput.hpp>
Generally you won't have to bother using this class.
Definition at line 67 of file mouseinput.hpp.
Public Types | |
enum | { EMPTY = 0, LEFT, RIGHT, MIDDLE, WHEEL_UP, WHEEL_DOWN, PRESS, RELEASE, MOTION } |
Enum with mouse input values. | |
Public Member Functions | |
MouseInput () | |
Constructor. | |
MouseInput (int button, int type, int mousex, int mousey, int timeStamp) | |
Constructor. | |
void | setType (int type) |
Sets the input type. | |
int | getType () const |
Gets the input type. | |
void | setButton (int button) |
Sets the button pressed. | |
int | getButton () const |
Gets the button pressed. | |
void | setTimeStamp (int timeStamp) |
Sets the timestamp for the input. | |
int | getTimeStamp () const |
Gets the time stamp of the input. | |
Public Attributes | |
int | x |
int | y |
Protected Attributes | |
int | mType |
int | mButton |
int | mTimeStamp |
|
Constructor.
Definition at line 63 of file mouseinput.cpp. |
|
Gets the button pressed.
Definition at line 87 of file mouseinput.cpp. |
|
Gets the time stamp of the input.
Definition at line 92 of file mouseinput.cpp. |
|
Gets the input type.
Definition at line 77 of file mouseinput.cpp. |
|
Sets the button pressed.
Definition at line 82 of file mouseinput.cpp. Referenced by gcn::SDLInput::pushInput(). |
|
Sets the timestamp for the input.
Definition at line 97 of file mouseinput.cpp. Referenced by gcn::SDLInput::pushInput(). |
|
Sets the input type.
Definition at line 72 of file mouseinput.cpp. Referenced by gcn::SDLInput::pushInput(). |