Correctly init p_povPosition (#531)

This commit is contained in:
Anders Jenbo 2025-07-06 07:12:20 +02:00 committed by GitHub
parent 004b88e02e
commit 1b8f662090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -207,6 +207,7 @@ MxResult LegoInputManager::GetJoystickState(MxU32* p_joystickX, MxU32* p_joystic
// normalize values acquired from joystick axes
*p_joystickX = ((xPos + 32768) * 100) / 65535;
*p_joystickY = ((yPos + 32768) * 100) / 65535;
*p_povPosition = -1;
return SUCCESS;
}