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

Use gamepad cursor speed setting

This commit is contained in:
elsid 2023-12-22 19:24:02 +01:00
parent 8cafcf702f
commit 4067e10f3f
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

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;