fix PushMotion parameter types
This commit is contained in:
parent
a11196e66f
commit
f30edc3bbe
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user