OIS  1.5
Object-oriented Input System
Public Member Functions | Public Attributes | List of all members
OIS::MouseState Class Reference

#include <OISMouse.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

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

Constructor & Destructor Documentation

◆ MouseState()

OIS::MouseState::MouseState ( )
inline

Member Function Documentation

◆ buttonDown()

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

Button down test.

◆ clear()

void OIS::MouseState::clear ( )
inline

Clear all the values.

Member Data Documentation

◆ buttons

int OIS::MouseState::buttons

represents all buttons - bit position indicates button down

◆ height

int OIS::MouseState::height
mutable

◆ width

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

◆ X

Axis OIS::MouseState::X

X Axis component.

◆ Y

Axis OIS::MouseState::Y

◆ Z

Axis OIS::MouseState::Z

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