Antkeeper
0.0.1
src
engine
input
mapping-events.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2023 Christopher J. Howard
3
*
4
* This file is part of Antkeeper source code.
5
*
6
* Antkeeper source code is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* Antkeeper source code is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with Antkeeper source code. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef ANTKEEPER_INPUT_MAPPING_EVENTS_HPP
21
#define ANTKEEPER_INPUT_MAPPING_EVENTS_HPP
22
23
#include <
engine/input/mapping.hpp
>
24
25
namespace
input
{
26
30
struct
gamepad_axis_mapped_event
31
{
33
gamepad_axis_mapping
mapping
;
34
};
35
39
struct
gamepad_button_mapped_event
40
{
42
gamepad_button_mapping
mapping
;
43
};
44
48
struct
key_mapped_event
49
{
51
key_mapping
mapping
;
52
};
53
57
struct
mouse_button_mapped_event
58
{
60
mouse_button_mapping
mapping
;
61
};
62
66
struct
mouse_motion_mapped_event
67
{
69
mouse_motion_mapping
mapping
;
70
};
71
75
struct
mouse_scroll_mapped_event
76
{
78
mouse_scroll_mapping
mapping
;
79
};
80
81
}
// namespace input
82
83
#endif
// ANTKEEPER_INPUT_MAPPING_EVENTS_HPP
input::gamepad_axis_mapping
Maps a direction along a gamepad axis to a control input value.
Definition:
mapping.hpp:61
input::gamepad_button_mapping
Maps a gamepad button to a control input value.
Definition:
mapping.hpp:95
input::key_mapping
Maps a keyboard key to a control input value.
Definition:
mapping.hpp:125
input::mouse_button_mapping
Maps a mouse button to a control input value.
Definition:
mapping.hpp:163
input::mouse_motion_mapping
Maps a direction along a mouse motion axis to a control input value.
Definition:
mapping.hpp:193
input::mouse_scroll_mapping
Maps a direction along a mouse scroll axis to a control input value.
Definition:
mapping.hpp:227
mapping.hpp
input
Input devices, events, and mapping.
Definition:
action-events.hpp:23
input::gamepad_axis_mapped_event
Event generated when a gamepad axis mapping has been generated.
Definition:
mapping-events.hpp:31
input::gamepad_axis_mapped_event::mapping
gamepad_axis_mapping mapping
Gamepad axis mapping that was generated.
Definition:
mapping-events.hpp:33
input::gamepad_button_mapped_event
Event generated when a gamepad button mapping has been generated.
Definition:
mapping-events.hpp:40
input::gamepad_button_mapped_event::mapping
gamepad_button_mapping mapping
Gamepad button mapping that was generated.
Definition:
mapping-events.hpp:42
input::key_mapped_event
Event generated when a key mapping has been generated.
Definition:
mapping-events.hpp:49
input::key_mapped_event::mapping
key_mapping mapping
Key mapping that was generated.
Definition:
mapping-events.hpp:51
input::mouse_button_mapped_event
Event generated when a mouse button mapping has been generated.
Definition:
mapping-events.hpp:58
input::mouse_button_mapped_event::mapping
mouse_button_mapping mapping
Mouse button mapping that was generated.
Definition:
mapping-events.hpp:60
input::mouse_motion_mapped_event
Event generated when a mouse motion mapping has been generated.
Definition:
mapping-events.hpp:67
input::mouse_motion_mapped_event::mapping
mouse_motion_mapping mapping
Mouse motion mapping that was generated.
Definition:
mapping-events.hpp:69
input::mouse_scroll_mapped_event
Event generated when a mouse scroll mapping has been generated.
Definition:
mapping-events.hpp:76
input::mouse_scroll_mapped_event::mapping
mouse_scroll_mapping mapping
Mouse scroll mapping that was generated.
Definition:
mapping-events.hpp:78