mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00: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,
|
Always = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MouseButton :: enum i32 {
|
||||||
|
Button1 = 1,
|
||||||
|
Button2 = 2,
|
||||||
|
Button3 = 3,
|
||||||
|
Button4 = 4,
|
||||||
|
Button5 = 5,
|
||||||
|
}
|
||||||
|
|
||||||
EventMask :: bit_set[EventMaskBits; int]
|
EventMask :: bit_set[EventMaskBits; int]
|
||||||
EventMaskBits :: enum i32 {
|
EventMaskBits :: enum i32 {
|
||||||
KeyPress = 0,
|
KeyPress = 0,
|
||||||
|
|||||||
Vendored
+1
-1
@@ -335,7 +335,7 @@ XButtonEvent :: struct {
|
|||||||
x_root: i32,
|
x_root: i32,
|
||||||
y_root: i32,
|
y_root: i32,
|
||||||
state: InputMask,
|
state: InputMask,
|
||||||
button: u32,
|
button: MouseButton,
|
||||||
same_screen: b32,
|
same_screen: b32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user