mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-24 14:45:00 -07:00
[vendor/x11]: Add a special type for mouse events
This commit is contained in:
Vendored
+8
@@ -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,
|
||||
|
||||
Vendored
+1
-1
@@ -335,7 +335,7 @@ XButtonEvent :: struct {
|
||||
x_root: i32,
|
||||
y_root: i32,
|
||||
state: InputMask,
|
||||
button: u32,
|
||||
button: MouseButton,
|
||||
same_screen: b32,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user