summaryrefslogtreecommitdiff
path: root/objs/cursor.go
diff options
context:
space:
mode:
Diffstat (limited to 'objs/cursor.go')
-rw-r--r--objs/cursor.go4
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 {