|
DIE Engine
|
#include <gamepad.h>
Public Member Functions | |
| Gamepad (int id) | |
| void | update () |
| Poll the controller state (axes, buttons, presence). | |
| void | feedback (float left, float right) |
| Set the vibration motor speeds. | |
Public Attributes | |
| int | id |
| float | leftX |
| float | leftY |
| float | rightX |
| float | rightY |
| uint32_t | buttons |
| uint32_t | toggled |
| uint32_t | pressed |
| uint32_t | released |
| bool | detected |
| Gamepad::Gamepad | ( | int | id | ) |
| void Gamepad::feedback | ( | float | left, |
| float | right ) |
Set the vibration motor speeds.
| left | low-frequency motor strength (0.0 .. 1.0) |
| right | high-frequency motor strength (0.0 .. 1.0) |
| void Gamepad::update | ( | ) |
Poll the controller state (axes, buttons, presence).
| uint32_t Gamepad::buttons |
| bool Gamepad::detected |
| int Gamepad::id |
| float Gamepad::leftX |
| float Gamepad::leftY |
| uint32_t Gamepad::pressed |
| uint32_t Gamepad::released |
| float Gamepad::rightX |
| float Gamepad::rightY |
| uint32_t Gamepad::toggled |