Stores and maintains Gamepad states.
More...
#include <le2d/input/gamepad.hpp>
Stores and maintains Gamepad states.
◆ Manager()
| le::input::Gamepad::Manager::Manager |
( |
| ) |
|
|
explicit |
◆ get()
| auto le::input::Gamepad::Manager::get |
( |
Binding |
binding | ) |
const -> Gamepad const & |
◆ get_by_id()
| auto le::input::Gamepad::Manager::get_by_id |
( |
Id |
id | ) |
const -> Gamepad const & |
◆ get_first_used()
| auto le::input::Gamepad::Manager::get_first_used |
( |
| ) |
const -> Gamepad const & |
◆ get_last_used()
| auto le::input::Gamepad::Manager::get_last_used |
( |
| ) |
const -> Gamepad const & |
◆ update()
| auto le::input::Gamepad::Manager::update |
( |
float |
nonzero_dead_zone = nonzero_dead_zone_v | ) |
-> bool |
Update all Gamepad states.
- Parameters
-
| nonzero_dead_zone | Dead zone for setting first/last used Gamepad. |
- Returns
- true if a Gamepad button was pressed.
The documentation for this class was generated from the following file: