mach: add mouse motion and mouse button events (#325)

* add mouse motion and mouse button events
* add scroll events
* switch from button/action to mouse_press and mouse_release events
This commit is contained in:
David Vanderson 2022-06-04 09:29:23 -04:00 committed by GitHub
parent 7b395759b7
commit a2a6c2a288
Failed to generate hash of commit
4 changed files with 89 additions and 0 deletions

View file

@ -20,6 +20,17 @@ pub const VSyncMode = enum {
triple,
};
pub const MouseButton = enum {
left,
right,
middle,
four,
five,
six,
seven,
eight,
};
pub const Key = enum {
a,
b,