fix PushMotion parameter types

This commit is contained in:
Matthew 2025-09-10 03:50:08 +10:00
parent a11196e66f
commit f30edc3bbe

View File

@ -91,7 +91,7 @@ Push(Inputs* inputs, Input input, i32 x, i32 y, bool pressed)
} }
void void
PushMotion(Inputs* inputs, i32 rel_x, i32 rel_y, u16 x, u16 y) PushMotion(Inputs* inputs, i32 rel_x, i32 rel_y, i32 x, i32 y)
{ {
DNode!(InputEvent)* node = Alloc!(DNode!(InputEvent))(&inputs.arena); DNode!(InputEvent)* node = Alloc!(DNode!(InputEvent))(&inputs.arena);
node.value.key = Input.MouseMotion; node.value.key = Input.MouseMotion;
@ -379,7 +379,7 @@ HandleEvents(PlatformWindow* window)
if (input != KBI.None) if (input != KBI.None)
{ {
Push(inputs, input, keyboard_event.root_x, keyboard_event.root_y, pressed); Push(inputs, input, keyboard_event.event_x, keyboard_event.event_y, pressed);
} }
} break; } break;
case XCB_BUTTON_PRESS: case XCB_BUTTON_PRESS:
@ -399,7 +399,7 @@ HandleEvents(PlatformWindow* window)
if (input != Input.None) if (input != Input.None)
{ {
Push(inputs, input, mouse_event.root_x, mouse_event.root_y, pressed); Push(inputs, input, mouse_event.event_x, mouse_event.event_y, pressed);
} }
} break; } break;
case XCB_MOTION_NOTIFY: case XCB_MOTION_NOTIFY: