Classes | |
| class | Joystick |
| A class to wrap joysticks, to be created from an SDL joystick ID. More... | |
Enumerations | |
| enum | X360JoystickDefines |
Functions | |
| int | getNumberOfJoysticks () |
| Get the number of joysticks detected by the OS. | |
| bool | isJoystickOpened (int i) |
| Determine if we have reserved a joystick for our exclusive use. | |
| std::string | getNameForJoystick (int i) |
| Acquire the human readable name for a given joystick. | |
| Propane::Input::Joystick | getJoystick (int i) |
| Get the Propane::Input::Joystick for a given OS-detected joystick. Asserts if i is too big or small. | |
| void | updateJoysticks () |
| Update all joysticks. You don't have to do this if SDL is set to update joysticks in the input event loop. | |
|
|
Common values for use with the Xbox360 controller and similar controllers on Mac OS X (on Mac OSX, use this driver: http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/OsxDriver ) These values SHOULD work for the official Windows driver. |
|
|
Get the Propane::Input::Joystick for a given OS-detected joystick. Asserts if i is too big or small. Makes an SDL joystick ID into a Propane::Input::Joystick object.
|
|
|
Acquire the human readable name for a given joystick. Gets the name for a SDL-detected joystick.
|
|
|
Get the number of joysticks detected by the OS. Returns the number of joysticks that SDL detected.
|
|
|
Determine if we have reserved a joystick for our exclusive use. Checks if a given joystick ID is opened by SDL.
|
|
|
Update all joysticks. You don't have to do this if SDL is set to update joysticks in the input event loop. Update all joysticks at once. Do not call this if you are using SDL's joystick event handling (disabled by default). In that case you must use the SDL event system instead. |
1.4.6