Ver código fonte

Fixed relative motion having desktop mouse scale on Wayland

Fixes https://github.com/libsdl-org/SDL/issues/13753
Sam Lantinga 3 semanas atrás
pai
commit
b13416d74f
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/video/wayland/SDL_waylandevents.c

+ 2 - 2
src/video/wayland/SDL_waylandevents.c

@@ -1243,8 +1243,8 @@ static void relative_pointer_handle_relative_motion(void *data,
     seat->pointer.pending_frame.have_relative = true;
     seat->pointer.pending_frame.relative.dx = dx;
     seat->pointer.pending_frame.relative.dy = dy;
-    seat->pointer.pending_frame.relative.dx_unaccel = dx;
-    seat->pointer.pending_frame.relative.dy_unaccel = dy;
+    seat->pointer.pending_frame.relative.dx_unaccel = dx_unaccel;
+    seat->pointer.pending_frame.relative.dy_unaccel = dy_unaccel;
     seat->pointer.pending_frame.timestamp_ns = Wayland_AdjustEventTimestampBase(SDL_US_TO_NS(((Uint64)time_hi << 32) | (Uint64)time_lo));
 
     if (wl_pointer_get_version(seat->pointer.wl_pointer) < WL_POINTER_FRAME_SINCE_VERSION) {