mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 18:09:43 +00:00
Merge remote-tracking branch 'rohit-n/gamepad'
This commit is contained in:
commit
d511772534
1 changed files with 3 additions and 0 deletions
|
@ -370,6 +370,9 @@ namespace MWInput
|
||||||
float zAxis = mInputBinder->getChannel(A_LookUpDown)->getValue()*2.0f-1.0f;
|
float zAxis = mInputBinder->getChannel(A_LookUpDown)->getValue()*2.0f-1.0f;
|
||||||
const MyGUI::IntSize& viewSize = MyGUI::RenderManager::getInstance().getViewSize();
|
const MyGUI::IntSize& viewSize = MyGUI::RenderManager::getInstance().getViewSize();
|
||||||
|
|
||||||
|
xAxis *= (1.5f - mInputBinder->getChannel(A_Use)->getValue());
|
||||||
|
yAxis *= (1.5f - mInputBinder->getChannel(A_Use)->getValue());
|
||||||
|
|
||||||
// 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
|
||||||
mGuiCursorX += xAxis * dt * 1500.0f * mInvUiScalingFactor;
|
mGuiCursorX += xAxis * dt * 1500.0f * mInvUiScalingFactor;
|
||||||
|
|
Loading…
Reference in a new issue