OIS::LinuxMouse Class Reference

#include <src/ois/linux/LinuxMouse.h>

Inheritance diagram for OIS::LinuxMouse:

OIS::Mouse OIS::Object

List of all members.

Public Member Functions

virtual void _initialize ()
virtual void capture ()
void grab (bool grab)
void hide (bool hide)
 LinuxMouse (InputManager *creator, bool buffered, bool grab, bool hide)
virtual InterfacequeryInterface (Interface::IType)
virtual void setBuffered (bool buffered)
virtual ~LinuxMouse ()

Protected Member Functions

void _processXEvents ()

Protected Attributes

Cursor cursor
Display * display
bool grabMouse
bool hideMouse
bool mMoved
bool mouseFocusLost
bool mWarped
long oldXMouseX
long oldXMouseY
long oldXMouseZ
Window window


Constructor & Destructor Documentation

LinuxMouse::LinuxMouse ( InputManager creator,
bool  buffered,
bool  grab,
bool  hide 
)

LinuxMouse::~LinuxMouse (  )  [virtual]


Member Function Documentation

void LinuxMouse::_initialize (  )  [virtual]

void LinuxMouse::_processXEvents (  )  [protected]

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.

References _processXEvents(), grab(), grabMouse, hide(), hideMouse, OIS::Object::mBuffered, OIS::Object::mCreator, OIS::Mouse::mListener, mMoved, mouseFocusLost, OIS::MouseListener::mouseMoved(), OIS::Mouse::mState, mWarped, OIS::Axis::rel, OIS::MouseState::X, OIS::MouseState::Y, and OIS::MouseState::Z.

void LinuxMouse::grab ( bool  grab  ) 

void LinuxMouse::hide ( bool  hide  ) 

References cursor, display, and window.

Referenced by _initialize(), capture(), and ~LinuxMouse().

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.

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

Remarks:
Sets buffered mode

Implements OIS::Object.

References OIS::Object::mBuffered.


Member Data Documentation

Cursor OIS::LinuxMouse::cursor [protected]

Display* OIS::LinuxMouse::display [protected]

bool OIS::LinuxMouse::grabMouse [protected]

bool OIS::LinuxMouse::hideMouse [protected]

Referenced by _initialize(), capture(), and LinuxMouse().

bool OIS::LinuxMouse::mMoved [protected]

bool OIS::LinuxMouse::mWarped [protected]

long OIS::LinuxMouse::oldXMouseX [protected]

Referenced by _initialize(), and _processXEvents().

long OIS::LinuxMouse::oldXMouseY [protected]

Referenced by _initialize(), and _processXEvents().

long OIS::LinuxMouse::oldXMouseZ [protected]

Referenced by _initialize().

Window OIS::LinuxMouse::window [protected]


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:22:18 2009 for Orxonox by  doxygen 1.5.6