_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include <mouseinput.h>
Public Types | |
| enum | { EMPTY = 0, LEFT, RIGHT, MIDDLE, WHEEL_UP, WHEEL_DOWN, PRESS, RELEASE, MOTION } |
Public Member Functions | |
| MouseInput () | |
| MouseInput (int button, int type, int mousex, int mousey, int timeStamp) | |
| void | setType (int type) |
| int | getType () const |
| void | setButton (int button) |
| int | getButton () const |
| void | setTimeStamp (int timeStamp) |
| int | getTimeStamp () const |
Public Attributes | |
| int | x |
| int | y |
Protected Attributes | |
| int | mType |
| int | mButton |
| int | mTimeStamp |
Internal class representing mouse input. Generally you won't have to bother using this class.
| anonymous enum |
|
inline |
Constructor.
| gcn::MouseInput::MouseInput | ( | int | button, |
| int | type, | ||
| int | mousex, | ||
| int | mousey, | ||
| int | timeStamp | ||
| ) |
Constructor.
| button | the button pressed. |
| type | the type of input. |
| mousex | the mouse x coordinate. |
| mousey | the mouse y coordinate. |
| timeStamp | the mouse inputs time stamp. |
| int gcn::MouseInput::getButton | ( | ) | const |
Gets the button pressed.
| int gcn::MouseInput::getTimeStamp | ( | ) | const |
Gets the time stamp of the input.
| int gcn::MouseInput::getType | ( | ) | const |
Gets the input type.
| void gcn::MouseInput::setButton | ( | int | button | ) |
Sets the button pressed.
| button | the button pressed. |
| void gcn::MouseInput::setTimeStamp | ( | int | timeStamp | ) |
Sets the timestamp for the input.
| timeStamp | the timestamp of the input. |
| void gcn::MouseInput::setType | ( | int | type | ) |
Sets the input type.
| type | the type of input. |
|
protected |
|
protected |
|
protected |
| int gcn::MouseInput::x |
| int gcn::MouseInput::y |
1.8.17
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.