|
R-Type
R-Type project
|
#include <Input.hpp>
Public Member Functions | |
| Axis (std::string _name) | |
Public Attributes | |
| std::string | name |
| Key | positiveButton |
| Key | negativeButton |
| Key | altPositiveButton |
| Key | altNegativeButton |
| AxisDetectMode | detectMode |
| int | joystickId |
| int | gamepadId |
| bool | invert |
Axis allow you to have several inputs for a specific action like vertical move with W ans S.
| name | axis name |
| positiveButton | input giving value 1 |
| altPositiveButton | alternative input giving value 1 |
| negativeButton | input giving value -1 |
| altNegativeButton | alternative input giving value -1 |
| joystickId | joystick index of gamepad (if joystick set to -1 then no joystick is assigned) |
| gamepadId | gamepad index. If 1 joystoick is defined but gamepad is set to -1, then all gamepad gonna be checked (2 gamepads) |
| invert | invert result |