diff options
Diffstat (limited to 'events/events.go')
| -rw-r--r-- | events/events.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/events/events.go b/events/events.go index 6783703..deea8ac 100644 --- a/events/events.go +++ b/events/events.go @@ -1,15 +1,17 @@ package events +type Delta uint64 + type DeviceID int type MouseMotion struct { Which DeviceID Dx, Dy float32 - Delta uint64 + Delta } type MousePress struct { - Delta uint64 + Delta Key uint8 Which DeviceID JustPressed, JustReleased, IsPressed bool @@ -20,7 +22,7 @@ type WindowChange struct { } type KeyPress struct { - Delta uint64 + Delta Key string Which DeviceID JustPressed, JustReleased, IsPressed bool |
