Antkeeper
0.0.1
|
Maps a mouse 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::mouse_button. More... | |
mouse_button_mapping (input::mouse *mouse, mouse_button button) | |
Constructs a mouse button mapping. More... | |
mouse_button_mapping ()=default | |
Constructs a mouse button mapping. More... | |
![]() | |
mapping ()=default | |
Constructs an input mapping. More... | |
virtual | ~mapping ()=default |
Destructs an input mapping. More... | |
Public Attributes | |
input::mouse * | mouse {nullptr} |
Pointer to the mapped mouse, or nullptr if input from any mouse is accepted. More... | |
mouse_button | button {0} |
Mapped mouse button. More... | |
Maps a mouse button to a control input value.
Definition at line 162 of file mapping.hpp.
input::mouse_button_mapping::mouse_button_mapping | ( | input::mouse * | mouse, |
mouse_button | button | ||
) |
Constructs a mouse button mapping.
mouse | Pointer to the mouse to map, or nullptr if input from any mouse will be mapped. |
button | Mouse button to map. |
Definition at line 46 of file mapping.cpp.
|
default |
Constructs a mouse button mapping.
mouse | Pointer to the mouse to map, or nullptr if input from any mouse will be mapped. |
button | Mouse button to map. |
|
inlineconstexproverridevirtualnoexcept |
Returns mapping_type::mouse_button.
Implements input::mapping.
Definition at line 177 of file mapping.hpp.
mouse_button input::mouse_button_mapping::button {0} |
Mapped mouse button.
Definition at line 186 of file mapping.hpp.
input::mouse* input::mouse_button_mapping::mouse {nullptr} |
Pointer to the mapped mouse, or nullptr
if input from any mouse is accepted.
Definition at line 183 of file mapping.hpp.