diff --git a/client/displayservers/SDL/sdl.c b/client/displayservers/SDL/sdl.c index adf873da..f1d628ce 100644 --- a/client/displayservers/SDL/sdl.c +++ b/client/displayservers/SDL/sdl.c @@ -297,7 +297,7 @@ static int sdlEventFilter(void * userdata, SDL_Event * event) break; app_updateCursorPos(event->motion.x, event->motion.y); - app_handleMouseRelitive(event->motion.xrel, event->motion.yrel, + app_handleMouseRelative(event->motion.xrel, event->motion.yrel, event->motion.xrel, event->motion.yrel); break; @@ -455,7 +455,7 @@ static void sdlWarpPointer(int x, int y, bool exiting) static void sdlRealignPointer(void) { - app_handleMouseRelitive(0.0, 0.0, 0.0, 0.0); + app_handleMouseRelative(0.0, 0.0, 0.0, 0.0); } static bool sdlIsValidPointerPos(int x, int y) diff --git a/client/displayservers/Wayland/wayland.c b/client/displayservers/Wayland/wayland.c index bda88c08..c4cd7ab1 100644 --- a/client/displayservers/Wayland/wayland.c +++ b/client/displayservers/Wayland/wayland.c @@ -757,7 +757,7 @@ static void relativePointerMotionHandler(void * data, wl_fixed_t dxW, wl_fixed_t dyW, wl_fixed_t dxUnaccelW, wl_fixed_t dyUnaccelW) { - app_handleMouseRelitive( + app_handleMouseRelative( wl_fixed_to_double(dxW), wl_fixed_to_double(dyW), wl_fixed_to_double(dxUnaccelW), diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 3e8baa2a..e5f627da 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -808,7 +808,7 @@ static void x11GenericEvent(XGenericEventCookie *cookie) app_updateCursorPos(device->event_x, device->event_y); if (!x11.pointerGrabbed) - app_handleMouseRelitive(0.0, 0.0, 0.0, 0.0); + app_handleMouseRelative(0.0, 0.0, 0.0, 0.0); return; } @@ -857,7 +857,7 @@ static void x11GenericEvent(XGenericEventCookie *cookie) prev_axis[0] = axis[0]; prev_axis[1] = axis[1]; - app_handleMouseRelitive(axis[0], axis[1], raw_axis[0], raw_axis[1]); + app_handleMouseRelative(axis[0], axis[1], raw_axis[0], raw_axis[1]); return; } } @@ -1067,7 +1067,7 @@ static void x11WarpPointer(int x, int y, bool exiting) static void x11RealignPointer(void) { - app_handleMouseRelitive(0.0, 0.0, 0.0, 0.0); + app_handleMouseRelative(0.0, 0.0, 0.0, 0.0); } static bool x11IsValidPointerPos(int x, int y) diff --git a/client/include/app.h b/client/include/app.h index d2c68d58..19af32d5 100644 --- a/client/include/app.h +++ b/client/include/app.h @@ -41,7 +41,7 @@ void app_updateCursorPos(double x, double y); void app_updateWindowPos(int x, int y); void app_handleResizeEvent(int w, int h, const struct Border border); -void app_handleMouseRelitive(double normx, double normy, +void app_handleMouseRelative(double normx, double normy, double rawx, double rawy); void app_handleMouseBasic(void); diff --git a/client/src/app.c b/client/src/app.c index 8adebaa5..d582fa77 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -266,7 +266,7 @@ void app_handleKeyRelease(int sc) } } -void app_handleMouseRelitive(double normx, double normy, +void app_handleMouseRelative(double normx, double normy, double rawx, double rawy) { if (g_cursor.grab)