From 75258715b8ce194e45e3fef8bcf3c918135c4025 Mon Sep 17 00:00:00 2001 From: cpasjuste Date: Thu, 24 Jun 2021 12:54:59 +0200 Subject: [PATCH] switch: fix mouse interface --- src/video/switch/SDL_switchmouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/switch/SDL_switchmouse.c b/src/video/switch/SDL_switchmouse.c index 04c2db6b5..d6d50b87e 100644 --- a/src/video/switch/SDL_switchmouse.c +++ b/src/video/switch/SDL_switchmouse.c @@ -95,8 +95,8 @@ SWITCH_PollMouse(void) // results in approximately the same mouse motion as reported by mouse_pos.x and mouse_pos.y // but without the clamping to 1280 x 720 if(state_count > 0) { - dx = mouse_state.x * 2; - dy = mouse_state.y * 2; + dx = mouse_state.delta_x * 2; + dy = mouse_state.delta_y * 2; if (dx || dy) { SDL_SendMouseMotion(window, 0, 1, dx, dy); }