ManaPlus
|
#include <mouseinput.h>
Public Member Functions | |
MouseInput () | |
MouseInput (const MouseInput &m) | |
MouseInput & | operator= (const MouseInput &m) |
~MouseInput () | |
void | setType (MouseEventTypeT type) |
MouseEventTypeT | getType () const |
void | setButton (MouseButtonT button) |
MouseButtonT | getButton () const |
int | getTimeStamp () const |
void | setTimeStamp (int timeStamp) |
void | setX (int x) |
int | getX () const |
void | setY (int y) |
int | getY () const |
void | setReal (const int x, const int y) |
int | getRealX () const |
int | getRealY () const |
int | getTouchX () const |
int | getTouchY () const |
Protected Attributes | |
MouseEventTypeT | mType |
MouseButtonT | mButton |
int | mTimeStamp |
int | mX |
int | mY |
int | mRealX |
int | mRealY |
Definition at line 73 of file mouseinput.h.
|
inline |
Definition at line 76 of file mouseinput.h.
|
inline |
|
inline |
Definition at line 111 of file mouseinput.h.
|
inline |
Definition at line 129 of file mouseinput.h.
References mButton.
Referenced by Gui::handleMouseMoved(), Gui::handleMousePressed(), Gui::handleMouseReleased(), Gui::handleMouseWheelMovedDown(), and Gui::handleMouseWheelMovedUp().
|
inline |
Definition at line 167 of file mouseinput.h.
References mRealX.
Referenced by Gui::handleMouseInput().
|
inline |
Definition at line 170 of file mouseinput.h.
References mRealY.
Referenced by Gui::handleMouseInput().
|
inline |
Definition at line 134 of file mouseinput.h.
References mTimeStamp.
Referenced by Gui::handleMousePressed().
|
inline |
|
inline |
|
inline |
Definition at line 119 of file mouseinput.h.
References mType.
Referenced by Gui::handleMouseInput().
|
inline |
Definition at line 149 of file mouseinput.h.
References mX.
Referenced by Gui::handleMouseInput(), Gui::handleMouseMoved(), Gui::handleMousePressed(), Gui::handleMouseReleased(), Gui::handleMouseWheelMovedDown(), and Gui::handleMouseWheelMovedUp().
|
inline |
Definition at line 159 of file mouseinput.h.
References mY.
Referenced by Gui::handleMouseInput(), Gui::handleMouseMoved(), Gui::handleMousePressed(), Gui::handleMouseReleased(), Gui::handleMouseWheelMovedDown(), and Gui::handleMouseWheelMovedUp().
|
inline |
|
inline |
Definition at line 124 of file mouseinput.h.
References mButton.
Referenced by SDLInput::pushInput(), SDLInput::simulateMouseClick(), and SDLInput::simulateMouseMove().
|
inline |
Definition at line 164 of file mouseinput.h.
References mRealX, mRealY, x, and y.
Referenced by SDLInput::pushInput(), SDLInput::simulateMouseClick(), and SDLInput::simulateMouseMove().
|
inline |
Definition at line 139 of file mouseinput.h.
References mTimeStamp.
Referenced by SDLInput::pushInput(), SDLInput::simulateMouseClick(), and SDLInput::simulateMouseMove().
|
inline |
Definition at line 114 of file mouseinput.h.
References mType.
Referenced by SDLInput::pushInput(), SDLInput::simulateMouseClick(), and SDLInput::simulateMouseMove().
|
inline |
Definition at line 144 of file mouseinput.h.
Referenced by TouchManager::processEvent(), SDLInput::pushInput(), SDLInput::simulateMouseClick(), and SDLInput::simulateMouseMove().
|
inline |
Definition at line 154 of file mouseinput.h.
Referenced by SDLInput::pushInput(), SDLInput::simulateMouseClick(), and SDLInput::simulateMouseMove().
|
protected |
Holds the button of the mouse input.
Definition at line 197 of file mouseinput.h.
Referenced by getButton(), operator=(), and setButton().
|
protected |
Definition at line 215 of file mouseinput.h.
Referenced by getRealX(), operator=(), and setReal().
|
protected |
Definition at line 217 of file mouseinput.h.
Referenced by getRealY(), operator=(), and setReal().
|
protected |
Holds the timestamp of the mouse input. Used to check for double clicks.
Definition at line 203 of file mouseinput.h.
Referenced by getTimeStamp(), operator=(), and setTimeStamp().
|
protected |
Holds the type of the mouse input.
Definition at line 192 of file mouseinput.h.
Referenced by getType(), operator=(), and setType().
|
protected |
Holds the x coordinate of the mouse input.
Definition at line 208 of file mouseinput.h.
Referenced by getTouchX(), getX(), operator=(), and setX().
|
protected |
Holds the y coordinate of the mouse input.
Definition at line 213 of file mouseinput.h.
Referenced by getTouchY(), getY(), operator=(), and setY().