Antkeeper
0.0.1
|
Maps a gamepad button to a control input value. More...
#include <mapping.hpp>
Public Member Functions | |
constexpr mapping_type | get_mapping_type () const noexcept override |
Returns mapping_type::gamepad_button. More... | |
gamepad_button_mapping (input::gamepad *gamepad, gamepad_button button) | |
Constructs a gamepad button mapping. More... | |
gamepad_button_mapping ()=default | |
Constructs a gamepad button mapping. More... | |
![]() | |
mapping ()=default | |
Constructs an input mapping. More... | |
virtual | ~mapping ()=default |
Destructs an input mapping. More... | |
Public Attributes | |
input::gamepad * | gamepad {nullptr} |
Pointer to the mapped gamepad, or nullptr if input from any gamepad is accepted. More... | |
gamepad_button | button {0} |
Mapped gamepad button. More... | |
Maps a gamepad button to a control input value.
Definition at line 94 of file mapping.hpp.
input::gamepad_button_mapping::gamepad_button_mapping | ( | input::gamepad * | gamepad, |
gamepad_button | button | ||
) |
Constructs a gamepad button mapping.
gamepad | Pointer to the gamepad to map, or nullptr if input from any gamepad will be mapped. |
button | Gamepad button to map. |
Definition at line 34 of file mapping.cpp.
|
default |
Constructs a gamepad button mapping.
gamepad | Pointer to the gamepad to map, or nullptr if input from any gamepad will be mapped. |
button | Gamepad button to map. |
|
inlineconstexproverridevirtualnoexcept |
Returns mapping_type::gamepad_button.
Implements input::mapping.
Definition at line 109 of file mapping.hpp.
gamepad_button input::gamepad_button_mapping::button {0} |
Mapped gamepad button.
Definition at line 118 of file mapping.hpp.
input::gamepad* input::gamepad_button_mapping::gamepad {nullptr} |
Pointer to the mapped gamepad, or nullptr
if input from any gamepad is accepted.
Definition at line 115 of file mapping.hpp.