|
Bubba-3D
0.9.0
Awesome game engine!
|
#include <JoystickButton.h>
Public Member Functions | |
| JoystickButton (IJoystickTranslation::Button button) | |
| JoystickButton (IJoystickTranslation::Button pos, IJoystickTranslation::Button neg) | |
| ControlStatus | getStatus () |
| ControlStatus::Activator | getActivator () |
Public Member Functions inherited from Input | |
| bool | isDual () |
Additional Inherited Members | |
Protected Member Functions inherited from Input | |
| Input (bool dual) | |
Protected Attributes inherited from Input | |
| bool | dual |
An input class for joystick buttons.
Definition at line 31 of file JoystickButton.h.
| JoystickButton::JoystickButton | ( | IJoystickTranslation::Button | joystickButton | ) |
Creates a non-dual button activated when button number button is pressed.
Creates a button representing a joystick button.
Definition at line 30 of file JoystickButton.cpp.
| JoystickButton::JoystickButton | ( | IJoystickTranslation::Button | pos, |
| IJoystickTranslation::Button | neg | ||
| ) |
Creates a dual button activated when either button is pressed. When neg is pressed the ControlStatus value is -100, when pos is pressed the value is 100. If both or none are pressed the value is 0.
Definition at line 34 of file JoystickButton.cpp.
1.8.11