OIS::JoyStickState Struct Reference

#include <OISJoyStick.h>

Collaboration diagram for OIS::JoyStickState:
[legend]

List of all members.

Public Member Functions

 JoyStickState ()
int buttonDown (int button) const
 Button Bit Test - returns true if down.
void clear ()
 internal method

Public Attributes

std::vector< AxismAxes
 Represents all the single axes on the device.
Pov mPOV [4]
 Represents the value of a POV. Maximum of 4.
Slider mSliders [4]
 Represent the max sliders.
int buttons
 Represents All Buttons By Bit (max buttons = 32).


Detailed Description

Represents the state of the joystick All members are valid for both buffered and non buffered mode Sticks with zero values are not present on the device

Definition at line 61 of file OISJoyStick.h.


Constructor & Destructor Documentation

OIS::JoyStickState::JoyStickState (  )  [inline]

Definition at line 63 of file OISJoyStick.h.


Member Function Documentation

int OIS::JoyStickState::buttonDown ( int  button  )  const [inline]

Button Bit Test - returns true if down.

Definition at line 78 of file OISJoyStick.h.

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

internal method

Definition at line 84 of file OISJoyStick.h.

Referenced by OIS::Win32JoyStick::_initialize(), and OIS::LinuxJoyStick::_initialize().


Member Data Documentation

std::vector<Axis> OIS::JoyStickState::mAxes

Represents all the single axes on the device.

Definition at line 66 of file OISJoyStick.h.

Referenced by OIS::LinuxJoyStick::_initialize(), EventHandler::axisMoved(), OIS::LinuxJoyStick::capture(), and handleNonBufferedJoy().

Pov OIS::JoyStickState::mPOV[4]

Represents the value of a POV. Maximum of 4.

Definition at line 69 of file OISJoyStick.h.

Referenced by OIS::Win32JoyStick::_changePOV(), OIS::LinuxJoyStick::capture(), and EventHandler::povMoved().

Slider OIS::JoyStickState::mSliders[4]

Represent the max sliders.

Definition at line 72 of file OISJoyStick.h.

int OIS::JoyStickState::buttons

Represents All Buttons By Bit (max buttons = 32).

Definition at line 75 of file OISJoyStick.h.

Referenced by OIS::Win32JoyStick::_doButtonClick(), OIS::LinuxJoyStick::capture(), and handleNonBufferedJoy().


The documentation for this struct was generated from the following file:
Generated on Sat Dec 1 20:13:55 2007 for OIS by  doxygen 1.5.4