OIS::MouseState Class Reference

#include <src/ois/OISMouse.h>

List of all members.

Public Member Functions

bool buttonDown (MouseButtonID button) const
 Button down test.
void clear ()
 Clear all the values.
 MouseState ()

Public Attributes

int buttons
 represents all buttons - bit position indicates button down
int height
int width
Axis X
 X Axis component.
Axis Y
 Y Axis Component.
Axis Z
 Z Axis Component.


Detailed Description

Represents the state of the mouse All members are valid for both buffered and non buffered mode

Constructor & Destructor Documentation

OIS::MouseState::MouseState (  )  [inline]


Member Function Documentation

bool OIS::MouseState::buttonDown ( MouseButtonID  button  )  const [inline]

Button down test.

References orxonox::KeyCode::L.

void OIS::MouseState::clear (  )  [inline]


Member Data Documentation

represents all buttons - bit position indicates button down

Referenced by OIS::Win32Mouse::_doMouseClick(), OIS::MacMouse::_mouseCallback(), and OIS::LinuxMouse::_processXEvents().

int OIS::MouseState::height [mutable]

int OIS::MouseState::width [mutable]

Represents the height/width of your display area.. used if mouse clipping or mouse grabbed in case of X11 - defaults to 50.. Make sure to set this and change when your size changes..

Referenced by OIS::LinuxMouse::_processXEvents(), OIS::Win32Mouse::capture(), and OIS::MacMouse::capture().


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

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