OIS
1.5
Object-oriented Input System
|
#include <OISJoyStick.h>
Public Member Functions | |
virtual | ~JoyStickListener () |
virtual bool | buttonPressed (const JoyStickEvent &arg, int button)=0 |
virtual bool | buttonReleased (const JoyStickEvent &arg, int button)=0 |
virtual bool | axisMoved (const JoyStickEvent &arg, int axis)=0 |
virtual bool | sliderMoved (const JoyStickEvent &arg, int index) |
Joystick Event, and sliderID. More... | |
virtual bool | povMoved (const JoyStickEvent &arg, int index) |
Joystick Event, and povID. More... | |
virtual bool | vector3Moved (const JoyStickEvent &arg, int index) |
Joystick Event, and Vector3ID. More... | |
To recieve buffered joystick input, derive a class from this, and implement the methods here. Then set the call back to your JoyStick instance with JoyStick::setEventCallback Each JoyStick instance can use the same callback class, as a devID number will be provided to differentiate between connected joysticks. Of course, each can have a seperate callback instead.
|
inlinevirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inlinevirtual |
Joystick Event, and povID.
|
inlinevirtual |
Joystick Event, and sliderID.
|
inlinevirtual |
Joystick Event, and Vector3ID.