fix naming conflict

This commit is contained in:
Matthew 2025-09-10 03:46:49 +10:00
parent 216e5e67b9
commit a11196e66f

View File

@ -91,7 +91,7 @@ Push(Inputs* inputs, Input input, i32 x, i32 y, bool pressed)
}
void
Push(Inputs* inputs, i32 rel_x, i32 rel_y, u16 x, u16 y)
PushMotion(Inputs* inputs, i32 rel_x, i32 rel_y, u16 x, u16 y)
{
DNode!(InputEvent)* node = Alloc!(DNode!(InputEvent))(&inputs.arena);
node.value.key = Input.MouseMotion;
@ -421,7 +421,7 @@ HandleEvents(PlatformWindow* window)
if (x > 0 || y > 0)
{
Push(inputs, window.mouse_prev_x-x, window.mouse_prev_y-y, x, y);
PushMotion(inputs, window.mouse_prev_x-x, window.mouse_prev_y-y, x, y);
}
window.mouse_prev_x = x;