summaryrefslogtreecommitdiffhomepage
path: root/floormat/events.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'floormat/events.hpp')
-rw-r--r--floormat/events.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/floormat/events.hpp b/floormat/events.hpp
index 68c2bedd..af3e6248 100644
--- a/floormat/events.hpp
+++ b/floormat/events.hpp
@@ -14,22 +14,25 @@ enum mouse_button : unsigned char {
};
struct mouse_button_event final {
- Vector2i position;
+ Vector2 position;
int mods = 0;
mouse_button button = mouse_button_none;
uint8_t click_count = 0;
+ bool is_primary : 1 = false;
};
struct mouse_move_event final {
- Vector2i position;
- mouse_button buttons = mouse_button_none;
+ Vector2 position;
int mods = 0;
+ mouse_button buttons = mouse_button_none;
+ bool is_primary : 1 = false;
};
struct mouse_scroll_event final {
Magnum::Vector2 offset;
- Vector2i position;
+ Vector2 position;
int mods = 0;
+ bool is_primary : 1 = false;
};
struct text_input_event final {