le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
le::input::Gamepad::Manager Class Reference

Stores and maintains Gamepad states. More...

#include <le2d/input/gamepad.hpp>

Public Member Functions

 Manager ()
 
auto get_by_id (Id id) const -> Gamepad const &
 
auto get_first_used () const -> Gamepad const &
 
auto get_last_used () const -> Gamepad const &
 
auto get (Binding binding) const -> Gamepad const &
 
auto update (float nonzero_dead_zone=nonzero_dead_zone_v) -> bool
 Update all Gamepad states.
 

Detailed Description

Stores and maintains Gamepad states.

Constructor & Destructor Documentation

◆ Manager()

le::input::Gamepad::Manager::Manager ( )
explicit

Member Function Documentation

◆ 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_zoneDead 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: