diff options
| author | ewy <ewy0@protonmail.com> | 2026-08-13 15:13:39 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-08-13 15:13:39 +0200 |
| commit | 60f58e548ef745ec072482954ac37c35d88280d4 (patch) | |
| tree | b1d89c0c1e47a427334e7fe708367b1263aaef40 /objs/cursor.go | |
| parent | d0fe29558b040a11c5c8a744c37fbd2e3826f6c4 (diff) | |
switch to single render loop
Diffstat (limited to 'objs/cursor.go')
| -rw-r--r-- | objs/cursor.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/objs/cursor.go b/objs/cursor.go index f6d412b..817279b 100644 --- a/objs/cursor.go +++ b/objs/cursor.go @@ -3,7 +3,7 @@ package objs import ( "github.com/Zyko0/go-sdl3/sdl" "ponger/ecs" - "ponger/input" + "ponger/events" ) type Cursor struct { @@ -22,7 +22,7 @@ func (c *Cursor) Render(renderer *sdl.Renderer) { renderer.RenderRect(r) } -func (c *Cursor) Process(ev input.Event) { +func (c *Cursor) ProcessMouseMotion(ev events.MouseMotion) { c.Position.X += ev.Dx c.Position.Y += ev.Dy if c.Position.X < 0 { |
