From f2909874a3540ef8d2e091809e7ba3c7013d954e Mon Sep 17 00:00:00 2001
From: Josue Ramos <nullrootbyte@gmail.com>
Date: Sun, 2 Aug 2026 12:20:39 -0600
Subject: [PATCH] Fix: Arma Reforger HOTAS, Logitech Extreme 3D PRO

---
 dlls/winebus.sys/bus_sdl.c | 2 +-
 dlls/winebus.sys/hid.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winebus.sys/bus_sdl.c b/dlls/winebus.sys/bus_sdl.c
index fbea0cb00b9..92832538b07 100644
--- a/dlls/winebus.sys/bus_sdl.c
+++ b/dlls/winebus.sys/bus_sdl.c
@@ -368,7 +368,7 @@ static NTSTATUS build_joystick_report_descriptor(struct unix_device *iface, cons
     for (i = 0; i < axis_count; i++)
     {
         if (!hid_device_add_axes(iface, 1, absolute_usages[i].UsagePage,
-                                 &absolute_usages[i].Usage, FALSE, -32768, 32767))
+                                 &absolute_usages[i].Usage, FALSE, 0, 65535))
             return STATUS_NO_MEMORY;
     }
 
diff --git a/dlls/winebus.sys/hid.c b/dlls/winebus.sys/hid.c
index 46ad0c69065..e3ce5277a54 100644
--- a/dlls/winebus.sys/hid.c
+++ b/dlls/winebus.sys/hid.c
@@ -1466,7 +1466,7 @@ BOOL hid_device_set_abs_axis(struct unix_device *iface, ULONG index, LONG value)
     struct hid_device_state *state = &iface->hid_device_state;
     ULONG offset = state->abs_axis_start + index * 4;
     if (index >= state->abs_axis_count) return FALSE;
-    *(ULONG *)(state->report_buf + offset) = LE_ULONG(value);
+    *(ULONG *)(state->report_buf + offset) = LE_ULONG(value + 32768);
     return TRUE;
 }
 
-- 
2.55.0

