Antkeeper  0.0.1
Public Member Functions | List of all members
input::mapper Class Reference

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...
 

Detailed Description

Listens for input events and generates corresponding input mappings.

Definition at line 38 of file mapper.hpp.

Member Function Documentation

◆ connect()

void input::mapper::connect ( ::event::dispatcher dispatcher)

Connects the input event signals of an event dispatcher to the mapper.

Parameters
dispatcherEvent dispatcher to connect.

Definition at line 25 of file mapper.cpp.

◆ disconnect()

void input::mapper::disconnect ( )

Disconnects all input event signals from the mapper.

Definition at line 35 of file mapper.cpp.

◆ get_gamepad_axis_mapped_channel()

::event::channel<gamepad_axis_mapped_event>& input::mapper::get_gamepad_axis_mapped_channel ( )
inlinenoexcept

Returns the channel through which gamepad axis mapped events are published.

Definition at line 54 of file mapper.hpp.

◆ get_gamepad_button_mapped_channel()

::event::channel<gamepad_button_mapped_event>& input::mapper::get_gamepad_button_mapped_channel ( )
inlinenoexcept

Returns the channel through which gamepad button mapped events are published.

Definition at line 60 of file mapper.hpp.

◆ get_key_mapped_channel()

::event::channel<key_mapped_event>& input::mapper::get_key_mapped_channel ( )
inlinenoexcept

Returns the channel through which key mapped events are published.

Definition at line 66 of file mapper.hpp.

◆ get_mouse_button_mapped_channel()

::event::channel<mouse_button_mapped_event>& input::mapper::get_mouse_button_mapped_channel ( )
inlinenoexcept

Returns the channel through which mouse button mapped events are published.

Definition at line 72 of file mapper.hpp.

◆ get_mouse_motion_mapped_channel()

::event::channel<mouse_motion_mapped_event>& input::mapper::get_mouse_motion_mapped_channel ( )
inlinenoexcept

Returns the channel through which mouse motion mapped events are published.

Definition at line 78 of file mapper.hpp.

◆ get_mouse_scroll_mapped_channel()

::event::channel<mouse_scroll_mapped_event>& input::mapper::get_mouse_scroll_mapped_channel ( )
inlinenoexcept

Returns the channel through which mouse scroll mapped events are published.

Definition at line 84 of file mapper.hpp.


The documentation for this class was generated from the following files: