#include <OISJoyStick.h>
Public Member Functions | |
| virtual | ~JoyStick () |
| short | buttons () |
| short | axes () |
| short | hats () |
| virtual void | setEventCallback (JoyStickListener *joyListener) |
| JoyStickListener * | getEventCallback () |
| const JoyStickState & | getJoyStickState () const |
Static Public Attributes | |
| static const int | MIN_AXIS = -32768 |
| The minimal axis value. | |
| static const int | MAX_AXIS = 32767 |
| The maximum axis value. | |
Protected Member Functions | |
| JoyStick () | |
Protected Attributes | |
| short | numButtons |
| short | numAxes |
| short | numHats |
| JoyStickState | mState |
| JoyStickListener * | listener |
Definition at line 132 of file OISJoyStick.h.
| virtual OIS::JoyStick::~JoyStick | ( | ) | [inline, virtual] |
Definition at line 135 of file OISJoyStick.h.
| OIS::JoyStick::JoyStick | ( | ) | [inline, protected] |
Definition at line 168 of file OISJoyStick.h.
| short OIS::JoyStick::buttons | ( | ) | [inline] |
| short OIS::JoyStick::axes | ( | ) | [inline] |
| short OIS::JoyStick::hats | ( | ) | [inline] |
| virtual void OIS::JoyStick::setEventCallback | ( | JoyStickListener * | joyListener | ) | [inline, virtual] |
| joyListener | Send a pointer to a class derived from JoyStickListener or 0 to clear the callback |
Reimplemented in OIS::LinuxJoyStick.
Definition at line 153 of file OISJoyStick.h.
Referenced by doStartup().
| JoyStickListener* OIS::JoyStick::getEventCallback | ( | ) | [inline] |
| const JoyStickState& OIS::JoyStick::getJoyStickState | ( | ) | const [inline] |
Definition at line 159 of file OISJoyStick.h.
Referenced by handleNonBufferedJoy().
const int OIS::JoyStick::MIN_AXIS = -32768 [static] |
The minimal axis value.
Definition at line 162 of file OISJoyStick.h.
Referenced by OIS::LinuxJoyStick::capture(), and OIS::Win32JoyStick::DIEnumDeviceObjectsCallback().
const int OIS::JoyStick::MAX_AXIS = 32767 [static] |
The maximum axis value.
Definition at line 165 of file OISJoyStick.h.
Referenced by OIS::LinuxJoyStick::capture(), and OIS::Win32JoyStick::DIEnumDeviceObjectsCallback().
short OIS::JoyStick::numButtons [protected] |
Definition at line 170 of file OISJoyStick.h.
Referenced by OIS::Win32JoyStick::_enumerate(), OIS::LinuxJoyStick::_getJoyInfo(), and OIS::LinuxJoyStick::LinuxJoyStick().
short OIS::JoyStick::numAxes [protected] |
Definition at line 171 of file OISJoyStick.h.
Referenced by OIS::Win32JoyStick::_enumerate(), OIS::LinuxJoyStick::_getJoyInfo(), and OIS::LinuxJoyStick::LinuxJoyStick().
short OIS::JoyStick::numHats [protected] |
Definition at line 172 of file OISJoyStick.h.
Referenced by OIS::LinuxJoyStick::_getJoyInfo(), and OIS::LinuxJoyStick::LinuxJoyStick().
JoyStickState OIS::JoyStick::mState [protected] |
Definition at line 174 of file OISJoyStick.h.
Referenced by OIS::Win32JoyStick::_changePOV(), OIS::Win32JoyStick::_doButtonClick(), OIS::Win32JoyStick::_initialize(), OIS::LinuxJoyStick::_initialize(), and OIS::LinuxJoyStick::capture().
JoyStickListener* OIS::JoyStick::listener [protected] |
Definition at line 176 of file OISJoyStick.h.
Referenced by OIS::Win32JoyStick::_changePOV(), OIS::Win32JoyStick::_doButtonClick(), OIS::LinuxJoyStick::capture(), OIS::LinuxJoyStick::setEventCallback(), and OIS::Win32JoyStick::Win32JoyStick().
1.5.4