mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 04:21:15 +00:00
Correctly init p_povPosition
This commit is contained in:
parent
6b446d242f
commit
05ba41a616
@ -207,6 +207,7 @@ MxResult LegoInputManager::GetJoystickState(MxU32* p_joystickX, MxU32* p_joystic
|
|||||||
// normalize values acquired from joystick axes
|
// normalize values acquired from joystick axes
|
||||||
*p_joystickX = ((xPos + 32768) * 100) / 65535;
|
*p_joystickX = ((xPos + 32768) * 100) / 65535;
|
||||||
*p_joystickY = ((yPos + 32768) * 100) / 65535;
|
*p_joystickY = ((yPos + 32768) * 100) / 65535;
|
||||||
|
*p_povPosition = -1;
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user