Class hierarchy Compound list File list Compound Members File Members
Joystick Class Reference
A joystick class, created automatically (if available) by the console. More...
Inherits SystemInterface.
List of all members.
Public Members
- virtual long update () = 0
- Must be called to poll the current joystick status.
- virtual int getX () = 0
- Left-Right axis position.
- virtual int getY () = 0
- Up down axis position.
- virtual int getZ () = 0
- Z Axe, not available in all joysticks.
- virtual int button (int Num=0) = 0
- Get the status of a button (main one is usually 0).
- virtual int POV (int Num=0) = 0
- Get the status of a Point of view control.
- virtual int getAxeNumber () = 0
- Returns the number of axes this joystick has.
- virtual int getButtonNumber () = 0
- Returns the number of buttons this joystick has.
- virtual int getPOVNumber () = 0
- Returns the number of Point of view controls this joystick has.
Detailed Description
A joystick class, created automatically (if available) by the console.
Member Function Documentation
virtual long Joystick::update() = 0 [pure virtual]
Must be called to poll the current joystick status.
virtual int Joystick::getX() = 0 [pure virtual]
Left-Right axis position.
virtual int Joystick::getY() = 0 [pure virtual]
virtual int Joystick::getZ() = 0 [pure virtual]
Z Axe, not available in all joysticks.
virtual int Joystick::button(int Num=0) = 0 [pure virtual]
Get the status of a button (main one is usually 0).
virtual int Joystick::POV(int Num=0) = 0 [pure virtual]
Get the status of a Point of view control.
virtual int Joystick::getAxeNumber() = 0 [pure virtual]
Returns the number of axes this joystick has.
virtual int Joystick::getButtonNumber() = 0 [pure virtual]
Returns the number of buttons this joystick has.
virtual int Joystick::getPOVNumber() = 0 [pure virtual]
Returns the number of Point of view controls this joystick has.
The documentation for this class was generated from the following file: