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-10 20:29:24 +02:00
1 parent 5072f1910f
commit 263d0b3983
9 files changed
+18 -10

No files matched your search

+1 -1
View File
@@ -1448,7 +1448,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);
}
}