Propane::Input::Joystick Class Reference

A class to wrap joysticks, to be created from an SDL joystick ID. More...

#include <PropaneJoystick.h>

List of all members.

Public Member Functions

void setDeadzone (float newMinimumValue)
 Set the deadzone value for the analogue functions -- if the stick reports less than this, the function will return 0.
bool isButtonDown (int button)
 See if a given button number is down (SDL does not yet support analogue buttons).
Sint16 getAxisState (int axis)
 Get the current position of the axis, from -32767 to +32767.
Propane::Vector2 getHatState (int hat)
 Get the current position of the hat, OR'd together.
Propane::Vector2 getAnalogueState (int xAxis, int yAxis)
 Compute the position of two axes onto a vector in analogue form (supports deadzones).


Detailed Description

A class to wrap joysticks, to be created from an SDL joystick ID.


The documentation for this class was generated from the following file:
Generated on Sun Jan 14 16:49:12 2007 for Propane Injector by  doxygen 1.4.6