summaryrefslogtreecommitdiff
path: root/events/events.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-08-14 12:32:05 +0200
committerewy <ewy0@protonmail.com>2026-08-14 12:32:05 +0200
commit48215d06a6cc0753a839e58c3403d34f69c250d4 (patch)
tree3c391d8edc2e52818072a48c7e36abefeb3b7671 /events/events.go
parentbc3f852ea670e206fa3facc736a230f6b9d23920 (diff)
add components in addition to gameobject interfacesHEADmaster
Diffstat (limited to 'events/events.go')
-rw-r--r--events/events.go8
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