1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 06:53:52 +00:00

Merge branch '5082-Scroll-with-controller' into 'master'

Fix scrolling with controller on gui

Closes #5082

See merge request OpenMW/openmw!131
This commit is contained in:
Alexei Dobrohotov 2019-07-01 21:29:34 +00:00
commit 4b9a5a289d

View file

@ -560,7 +560,7 @@ namespace MWInput
// game mode does not move the position of the GUI cursor // game mode does not move the position of the GUI cursor
float xmove = xAxis * dt * 1500.0f * mInvUiScalingFactor; float xmove = xAxis * dt * 1500.0f * mInvUiScalingFactor;
float ymove = yAxis * dt * 1500.0f * mInvUiScalingFactor; float ymove = yAxis * dt * 1500.0f * mInvUiScalingFactor;
if (xmove != 0|| ymove != 0) if (xmove != 0|| ymove != 0 || zAxis != 0)
{ {
mGuiCursorX += xmove; mGuiCursorX += xmove;
mGuiCursorY += ymove; mGuiCursorY += ymove;