Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit e90b53d

Browse files
committed
Mouse wheel change now always registered in menus
1 parent d1b0a85 commit e90b53d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Managers/UInputMan.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,14 @@ namespace RTE {
980980
if (m_DisableMouseMoving && m_PrepareToEnableMouseMoving && (mousePosX >= 0 && mousePosX < g_FrameMan.GetResX() && mousePosY >= 0 && mousePosY < g_FrameMan.GetResY())) {
981981
m_DisableMouseMoving = m_PrepareToEnableMouseMoving = false;
982982
}
983+
} else if (g_InActivity == false) {
984+
// Mouse wheel update for menus, regardless of player devices.
985+
if (std::abs(mouse_z) >= 1) {
986+
m_MouseWheelChange = mouse_z;
987+
position_mouse_z(0);
988+
} else {
989+
m_MouseWheelChange = 0;
990+
}
983991
}
984992
}
985993

0 commit comments

Comments
 (0)