OIS 1.6
Object-oriented Input System
Loading...
Searching...
No Matches
OIS::MouseState Class Reference

#include <OISMouse.h>

Public Member Functions

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

Public Attributes

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

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

◆ 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: