aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/msg.h
diff options
context:
space:
mode:
authorMarvin Borner2021-05-21 21:08:30 +0200
committerMarvin Borner2021-05-21 21:08:30 +0200
commit72869a4220ab321fd893e93fbec4532aa3892f8f (patch)
treeba640e385435049c74f00d96d3bc47908a181e5e /libs/libgui/msg.h
parenta69af1e2cc219f2f4010a6231dd32416a18437f2 (diff)
GUI improvements and leak reduction
Diffstat (limited to 'libs/libgui/msg.h')
-rw-r--r--libs/libgui/msg.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/libgui/msg.h b/libs/libgui/msg.h
index b29d0c8..4bffb74 100644
--- a/libs/libgui/msg.h
+++ b/libs/libgui/msg.h
@@ -55,9 +55,12 @@ struct message_mouse {
struct message_header header;
u32 id;
vec2 pos;
+ s8 scroll; // Dir: -1 neg, +1 pos
struct {
- u8 click : 1;
- } bits;
+ u8 left : 1;
+ u8 right : 1;
+ u8 middle : 1;
+ } but;
};
enum message_type {