Merge pull request #20612 from hrydgard/mouse-mapping-fix

SDL: Fix bug where the mouse got stuck in relative mode when mapping mouse inputs
This commit is contained in:
Henrik Rydgård committed 2025-07-11 11:13:01 +02:00
1 parent e28ffc1682
commit 447d57634c
9 files changed
+18 -10

No files matched your search

+1 -1
View File
@@ -1420,7 +1420,7 @@ static void SendMouseDeltaAxis() {
//NOTICE_LOG(Log::System, "delta: %0.2f %0.2f mx/my: %0.2f %0.2f dpi: %f sens: %f ",
// g_mouseDeltaX, g_mouseDeltaY, mx, my, g_display.dpi_scale_x, g_Config.fMouseSensitivity);
if (GetUIState() == UISTATE_INGAME || g_Config.bMapMouse) {
if (GetUIState() == UISTATE_INGAME || g_IsMappingMouseInput) {
NativeAxis(axis, 2);
}
}