Antkeeper
0.0.1
|
Listens for input events and generates corresponding input mappings. More...
#include <mapper.hpp>
Public Member Functions | |
void | connect (::event::dispatcher &dispatcher) |
Connects the input event signals of an event dispatcher to the mapper. More... | |
void | disconnect () |
Disconnects all input event signals from the mapper. More... | |
::event::channel< gamepad_axis_mapped_event > & | get_gamepad_axis_mapped_channel () noexcept |
Returns the channel through which gamepad axis mapped events are published. More... | |
::event::channel< gamepad_button_mapped_event > & | get_gamepad_button_mapped_channel () noexcept |
Returns the channel through which gamepad button mapped events are published. More... | |
::event::channel< key_mapped_event > & | get_key_mapped_channel () noexcept |
Returns the channel through which key mapped events are published. More... | |
::event::channel< mouse_button_mapped_event > & | get_mouse_button_mapped_channel () noexcept |
Returns the channel through which mouse button mapped events are published. More... | |
::event::channel< mouse_motion_mapped_event > & | get_mouse_motion_mapped_channel () noexcept |
Returns the channel through which mouse motion mapped events are published. More... | |
::event::channel< mouse_scroll_mapped_event > & | get_mouse_scroll_mapped_channel () noexcept |
Returns the channel through which mouse scroll mapped events are published. More... | |
Listens for input events and generates corresponding input mappings.
Definition at line 38 of file mapper.hpp.
void input::mapper::connect | ( | ::event::dispatcher & | dispatcher | ) |
Connects the input event signals of an event dispatcher to the mapper.
dispatcher | Event dispatcher to connect. |
Definition at line 25 of file mapper.cpp.
void input::mapper::disconnect | ( | ) |
Disconnects all input event signals from the mapper.
Definition at line 35 of file mapper.cpp.
|
inlinenoexcept |
Returns the channel through which gamepad axis mapped events are published.
Definition at line 54 of file mapper.hpp.
|
inlinenoexcept |
Returns the channel through which gamepad button mapped events are published.
Definition at line 60 of file mapper.hpp.
|
inlinenoexcept |
Returns the channel through which key mapped events are published.
Definition at line 66 of file mapper.hpp.
|
inlinenoexcept |
Returns the channel through which mouse button mapped events are published.
Definition at line 72 of file mapper.hpp.
|
inlinenoexcept |
Returns the channel through which mouse motion mapped events are published.
Definition at line 78 of file mapper.hpp.
|
inlinenoexcept |
Returns the channel through which mouse scroll mapped events are published.
Definition at line 84 of file mapper.hpp.