|
|
@ -77,6 +77,7 @@ namespace MWInput
|
|
|
|
, mSneaking(false)
|
|
|
|
, mSneaking(false)
|
|
|
|
, mAttemptJump(false)
|
|
|
|
, mAttemptJump(false)
|
|
|
|
, mInvUiScalingFactor(1.f)
|
|
|
|
, mInvUiScalingFactor(1.f)
|
|
|
|
|
|
|
|
, mGamepadCursorSpeed(Settings::Manager::getFloat("gamepad cursor speed", "Input"))
|
|
|
|
, mFakeDeviceID(1)
|
|
|
|
, mFakeDeviceID(1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mInputManager = new SDLUtil::InputWrapper(window, viewer, grab);
|
|
|
|
mInputManager = new SDLUtil::InputWrapper(window, viewer, grab);
|
|
|
@ -558,8 +559,8 @@ namespace MWInput
|
|
|
|
|
|
|
|
|
|
|
|
// We keep track of our own mouse position, so that moving the mouse while in
|
|
|
|
// 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
|
|
|
|
// 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 * mGamepadCursorSpeed;
|
|
|
|
float ymove = yAxis * dt * 1500.0f * mInvUiScalingFactor;
|
|
|
|
float ymove = yAxis * dt * 1500.0f * mInvUiScalingFactor * mGamepadCursorSpeed;
|
|
|
|
if (xmove != 0|| ymove != 0 || zAxis != 0)
|
|
|
|
if (xmove != 0|| ymove != 0 || zAxis != 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mGuiCursorX += xmove;
|
|
|
|
mGuiCursorX += xmove;
|
|
|
|