#include <LinuxMouse.h>
Public Member Functions | |
| LinuxMouse (InputManager *creator, bool buffered, bool grab, bool hide) | |
| virtual | ~LinuxMouse () |
| virtual void | setBuffered (bool buffered) |
| virtual void | capture () |
| virtual Interface * | queryInterface (Interface::IType) |
| virtual void | _initialize () |
| void | grab (bool grab) |
| void | hide (bool hide) |
Protected Member Functions | |
| void | _processXEvents () |
Protected Attributes | |
| bool | mMoved |
| bool | mWarped |
| long | oldXMouseX |
| long | oldXMouseY |
| long | oldXMouseZ |
| long | XMouseX |
| long | XMouseY |
| Window | window |
| X11 Stuff. | |
| Display * | display |
| Cursor | cursor |
| bool | grabMouse |
| bool | hideMouse |
| bool | mouseFocusLost |
Definition at line 32 of file LinuxMouse.h.
| LinuxMouse::LinuxMouse | ( | InputManager * | creator, | |
| bool | buffered, | |||
| bool | grab, | |||
| bool | hide | |||
| ) |
Definition at line 31 of file LinuxMouse.cpp.
References cursor, display, grabMouse, hideMouse, OIS::Mouse::listener, OIS::Object::mBuffered, OIS::Object::mCreator, OIS::Object::mType, OISMouse, and window.
| LinuxMouse::~LinuxMouse | ( | ) | [virtual] |
| void LinuxMouse::setBuffered | ( | bool | buffered | ) | [virtual] |
Implements OIS::Object.
Definition at line 101 of file LinuxMouse.cpp.
References OIS::Object::mBuffered.
| void LinuxMouse::capture | ( | ) | [virtual] |
Implements OIS::Object.
Definition at line 107 of file LinuxMouse.cpp.
References _processXEvents(), OIS::Axis::abs, display, grab(), grabMouse, OIS::MouseState::height, hide(), hideMouse, OIS::Mouse::listener, OIS::Object::mBuffered, OIS::Object::mCreator, mMoved, mouseFocusLost, OIS::MouseListener::mouseMoved(), OIS::Mouse::mState, mWarped, oldXMouseX, oldXMouseY, OIS::Axis::rel, OIS::MouseState::width, window, OIS::MouseState::X, XMouseX, XMouseY, OIS::MouseState::Y, and OIS::MouseState::Z.
| virtual Interface* OIS::LinuxMouse::queryInterface | ( | Interface::IType | ) | [inline, virtual] |
| type | The type of interface you are looking for |
Implements OIS::Object.
Definition at line 49 of file LinuxMouse.h.
| void LinuxMouse::_initialize | ( | ) | [virtual] |
Implements OIS::Object.
Definition at line 46 of file LinuxMouse.cpp.
References OIS::MouseState::clear(), cursor, display, grab(), grabMouse, hide(), hideMouse, OIS::Object::mCreator, mMoved, mouseFocusLost, OIS::Mouse::mState, mWarped, OIS_EXCEPT, oldXMouseX, oldXMouseY, oldXMouseZ, window, XMouseX, and XMouseY.
| void LinuxMouse::grab | ( | bool | grab | ) |
Definition at line 252 of file LinuxMouse.cpp.
References display, and window.
Referenced by _initialize(), capture(), and ~LinuxMouse().
| void LinuxMouse::hide | ( | bool | hide | ) |
Definition at line 261 of file LinuxMouse.cpp.
References cursor, display, and window.
Referenced by _initialize(), capture(), and ~LinuxMouse().
| void LinuxMouse::_processXEvents | ( | ) | [protected] |
Definition at line 180 of file LinuxMouse.cpp.
References OIS::MouseState::buttons, display, grabMouse, OIS::MouseState::height, OIS::Mouse::listener, OIS::Object::mBuffered, OIS::Object::mCreator, mMoved, OIS::MouseListener::mousePressed(), OIS::MouseListener::mouseReleased(), OIS::Mouse::mState, mWarped, oldXMouseX, oldXMouseY, OIS::Axis::rel, OIS::MouseState::width, XMouseX, XMouseY, and OIS::MouseState::Z.
Referenced by capture().
bool OIS::LinuxMouse::mMoved [protected] |
Definition at line 60 of file LinuxMouse.h.
Referenced by _initialize(), _processXEvents(), and capture().
bool OIS::LinuxMouse::mWarped [protected] |
Definition at line 60 of file LinuxMouse.h.
Referenced by _initialize(), _processXEvents(), and capture().
long OIS::LinuxMouse::oldXMouseX [protected] |
Definition at line 64 of file LinuxMouse.h.
Referenced by _initialize(), _processXEvents(), and capture().
long OIS::LinuxMouse::oldXMouseY [protected] |
Definition at line 64 of file LinuxMouse.h.
Referenced by _initialize(), _processXEvents(), and capture().
long OIS::LinuxMouse::oldXMouseZ [protected] |
long OIS::LinuxMouse::XMouseX [protected] |
Definition at line 66 of file LinuxMouse.h.
Referenced by _initialize(), _processXEvents(), and capture().
long OIS::LinuxMouse::XMouseY [protected] |
Definition at line 66 of file LinuxMouse.h.
Referenced by _initialize(), _processXEvents(), and capture().
Window OIS::LinuxMouse::window [protected] |
X11 Stuff.
Definition at line 69 of file LinuxMouse.h.
Referenced by _initialize(), capture(), grab(), hide(), and LinuxMouse().
Display* OIS::LinuxMouse::display [protected] |
Definition at line 70 of file LinuxMouse.h.
Referenced by _initialize(), _processXEvents(), capture(), grab(), hide(), LinuxMouse(), and ~LinuxMouse().
Cursor OIS::LinuxMouse::cursor [protected] |
Definition at line 71 of file LinuxMouse.h.
Referenced by _initialize(), hide(), LinuxMouse(), and ~LinuxMouse().
bool OIS::LinuxMouse::grabMouse [protected] |
Definition at line 73 of file LinuxMouse.h.
Referenced by _initialize(), _processXEvents(), capture(), and LinuxMouse().
bool OIS::LinuxMouse::hideMouse [protected] |
Definition at line 74 of file LinuxMouse.h.
Referenced by _initialize(), capture(), and LinuxMouse().
bool OIS::LinuxMouse::mouseFocusLost [protected] |
1.5.4