OIS::LinuxMouse Class Reference

#include <LinuxMouse.h>

Inheritance diagram for OIS::LinuxMouse:
[legend]
Collaboration diagram for OIS::LinuxMouse:
[legend]

List of all members.

Public Member Functions

 LinuxMouse (InputManager *creator, bool buffered, bool grab, bool hide)
virtual ~LinuxMouse ()
virtual void setBuffered (bool buffered)
virtual void capture ()
virtual InterfacequeryInterface (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


Detailed Description

Definition at line 32 of file LinuxMouse.h.


Constructor & Destructor Documentation

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]

Definition at line 89 of file LinuxMouse.cpp.

References cursor, display, grab(), and hide().


Member Function Documentation

void LinuxMouse::setBuffered ( bool  buffered  )  [virtual]

Remarks:
Sets buffered mode

Implements OIS::Object.

Definition at line 101 of file LinuxMouse.cpp.

References OIS::Object::mBuffered.

void LinuxMouse::capture (  )  [virtual]

Remarks:
Note: Calling this will also update the keyboard (X11 updates in a single event queue). Updates State and/or raises event for buffered mode..

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]

Remarks:
If available, get an interface to write to some devices. Examples include, turning on and off LEDs, ForceFeedback, etc
Parameters:
type The type of interface you are looking for

Implements OIS::Object.

Definition at line 49 of file LinuxMouse.h.

void LinuxMouse::_initialize (  )  [virtual]

Remarks:
Internal... Do not call this directly.

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().


Member Data Documentation

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]

Definition at line 64 of file LinuxMouse.h.

Referenced by _initialize().

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]

Definition at line 75 of file LinuxMouse.h.

Referenced by _initialize(), and capture().


The documentation for this class was generated from the following files:
Generated on Sat Dec 1 20:13:54 2007 for OIS by  doxygen 1.5.4