From 72869a4220ab321fd893e93fbec4532aa3892f8f Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 21 May 2021 21:08:30 +0200 Subject: GUI improvements and leak reduction --- libs/libgui/msg.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libs/libgui/msg.h') 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 { -- cgit v1.2.3