Skip to content

Commit

Permalink
Merge branch 'gamepad_cursor_speed' into 'master'
Browse files Browse the repository at this point in the history
Use gamepad cursor speed setting (#7732)

Closes #7732

See merge request OpenMW/openmw!3673
  • Loading branch information
Capostrophic committed Dec 23, 2023
2 parents 8cafcf7 + 4067e10 commit 4afa4e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/openmw/mwinput/controllermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4afa4e3

Please sign in to comment.