OIS
1.5
Object-oriented Input System
|
#include <OISJoyStick.h>
Public Member Functions | |
virtual | ~JoyStick () |
int | getNumberOfComponents (ComponentType cType) const |
void | setVector3Sensitivity (float degrees=OIS_JOYSTICK_VECTOR3_DEFAULT) |
float | getVector3Sensitivity () const |
virtual void | setEventCallback (JoyStickListener *joyListener) |
JoyStickListener * | getEventCallback () const |
const JoyStickState & | getJoyStickState () const |
Public Member Functions inherited from OIS::Object | |
virtual | ~Object () |
Type | type () const |
const std::string & | vendor () const |
virtual bool | buffered () const |
InputManager * | getCreator () const |
virtual void | setBuffered (bool buffered)=0 |
virtual void | capture ()=0 |
virtual int | getID () const |
virtual Interface * | queryInterface (Interface::IType type)=0 |
virtual void | _initialize ()=0 |
Static Public Attributes | |
static const int | MIN_AXIS = -32768 |
The minimal axis value. More... | |
static const int | MAX_AXIS = 32767 |
The maximum axis value. More... | |
Protected Member Functions | |
JoyStick (const std::string &vendor, bool buffered, int devID, InputManager *creator) | |
Protected Member Functions inherited from OIS::Object | |
Object (const std::string &vendor, Type iType, bool buffered, int devID, InputManager *creator) | |
Protected Attributes | |
int | mSliders |
Number of sliders. More... | |
int | mPOVs |
Number of POVs. More... | |
JoyStickState | mState |
The JoyStickState structure (contains all component values) More... | |
JoyStickListener * | mListener |
The callback listener. More... | |
float | mVector3Sensitivity |
Adjustment factor for orientation vector accuracy. More... | |
Protected Attributes inherited from OIS::Object | |
std::string | mVendor |
Vendor name if applicable/known. More... | |
Type | mType |
Type of controller object. More... | |
bool | mBuffered |
Buffered flag. More... | |
int | mDevID |
Not fully implemented yet. More... | |
InputManager * | mCreator |
The creator who created this object. More... | |
Joystick base class. To be implemented by specific system (ie. DirectX joystick) This class is useful as you remain OS independent using this common interface.
|
inlinevirtual |
|
protected |
JoyStickListener * JoyStick::getEventCallback | ( | ) | const |
|
inline |
int JoyStick::getNumberOfComponents | ( | ComponentType | cType | ) | const |
cType | The ComponentType you are interested in knowing about |
float JoyStick::getVector3Sensitivity | ( | ) | const |
|
virtual |
joyListener | Send a pointer to a class derived from JoyStickListener or 0 to clear the callback |
void JoyStick::setVector3Sensitivity | ( | float | degrees = OIS_JOYSTICK_VECTOR3_DEFAULT | ) |
|
static |
The maximum axis value.
|
static |
The minimal axis value.
|
protected |
The callback listener.
|
protected |
Number of POVs.
|
protected |
Number of sliders.
|
protected |
The JoyStickState structure (contains all component values)
|
protected |
Adjustment factor for orientation vector accuracy.