From 48215d06a6cc0753a839e58c3403d34f69c250d4 Mon Sep 17 00:00:00 2001 From: ewy Date: Fri, 14 Aug 2026 12:32:05 +0200 Subject: add components in addition to gameobject interfaces --- events/events.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'events/events.go') 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 -- cgit v1.3.1