#include <PropaneJoystick.h>
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). | |
1.4.6