sandbox
Loading...
Searching...
No Matches
events.hpp
1#ifndef LIBSBX_DEVICES_EVENTS_HPP_
2#define LIBSBX_DEVICES_EVENTS_HPP_
3
4#include <cinttypes>
5#include <cmath>
6
7#include <libsbx/devices/key.hpp>
8#include <libsbx/devices/mouse_button.hpp>
9#include <libsbx/devices/input_action.hpp>
10#include <libsbx/devices/input_mod.hpp>
11
12namespace sbx::devices {
13
18
20 std::int32_t x{};
21 std::int32_t y{};
22};
23
25 std::int32_t width{};
26 std::int32_t height{};
27};
28
30 std::int32_t width{};
31 std::int32_t height{};
32};
33
35 devices::key key;
36 input_mod mods;
37}; // struct key_pressed_event
38
40 devices::key key;
41 input_mod mods;
42}; // struct key_released_event
43
45 std::float_t x;
46 std::float_t y;
47}; // struct mouse_moved_event
48
50 mouse_button button;
51 input_mod mods;
52}; // struct mouse_button_pressed_event
53
55 mouse_button button;
56 input_mod mods;
57}; // struct mouse_button_released_event
58
60 std::float_t x;
61 std::float_t y;
62}; // struct mouse_scrolled_event
63
64} // namespace sbx::devices
65
66#endif // LIBSBX_DEVICES_EVENTS_HPP_
Definition: events.hpp:34
Definition: events.hpp:39
Definition: events.hpp:44
Definition: events.hpp:59
An event that is fired when a window requests to be closed.
Definition: events.hpp:17
Definition: events.hpp:19
Definition: events.hpp:24