diff --git a/platform.d b/platform.d index a3dab12..3b62e92 100644 --- a/platform.d +++ b/platform.d @@ -91,7 +91,7 @@ Push(Inputs* inputs, Input input, i32 x, i32 y, bool pressed) } 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); node.value.key = Input.MouseMotion; @@ -379,7 +379,7 @@ HandleEvents(PlatformWindow* window) 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; case XCB_BUTTON_PRESS: @@ -399,7 +399,7 @@ HandleEvents(PlatformWindow* window) 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; case XCB_MOTION_NOTIFY: