[vendor/x11]: Add a special type for mouse events

This commit is contained in:
flysand7
2023-11-12 21:09:41 +11:00
parent 9e35361eb8
commit c0bbe1e23d
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -68,6 +68,14 @@ BackingStore :: enum i32 {
Always = 2,
}
MouseButton :: enum i32 {
Button1 = 1,
Button2 = 2,
Button3 = 3,
Button4 = 4,
Button5 = 5,
}
EventMask :: bit_set[EventMaskBits; int]
EventMaskBits :: enum i32 {
KeyPress = 0,
+1 -1
View File
@@ -335,7 +335,7 @@ XButtonEvent :: struct {
x_root: i32,
y_root: i32,
state: InputMask,
button: u32,
button: MouseButton,
same_screen: b32,
}