1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-30 16:20:21 +00:00

Merge branch 'gamepad_cursor_speed' into 'master'

Use gamepad cursor speed setting (#7732)

Closes #7732

See merge request OpenMW/openmw!3673
This commit is contained in:
Alexei Kotov 2023-12-23 06:56:49 +00:00
commit 4afa4e3be0

View File

@ -94,7 +94,7 @@ namespace MWInput
// We keep track of our own mouse position, so that moving the mouse while in
// game mode does not move the position of the GUI cursor
float uiScale = MWBase::Environment::get().getWindowManager()->getScalingFactor();
const float gamepadCursorSpeed = Settings::input().mEnableController;
const float gamepadCursorSpeed = Settings::input().mGamepadCursorSpeed;
const float xMove = xAxis * dt * 1500.0f / uiScale * gamepadCursorSpeed;
const float yMove = yAxis * dt * 1500.0f / uiScale * gamepadCursorSpeed;