mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-04 10:41:35 -06:00
Fixed village camera receiving input in options menu, replaced extra nav inputs in achievements menu with fast scroll (#344)
* options_menu: prohibit right stick input to prevent camera moving in villages * achievement_menu: remove extra nav inputs, implemented fast scroll * achievement_menu: replicate skills menu fast scrolling
This commit is contained in:
@@ -466,6 +466,18 @@ uint32_t XamInputGetState(uint32_t userIndex, uint32_t flags, XAMINPUT_STATE* st
|
||||
|
||||
state->Gamepad.wButtons &= ~hid::g_prohibitedButtons;
|
||||
|
||||
if (hid::g_isLeftStickProhibited)
|
||||
{
|
||||
state->Gamepad.sThumbLX = 0;
|
||||
state->Gamepad.sThumbLY = 0;
|
||||
}
|
||||
|
||||
if (hid::g_isRightStickProhibited)
|
||||
{
|
||||
state->Gamepad.sThumbRX = 0;
|
||||
state->Gamepad.sThumbRY = 0;
|
||||
}
|
||||
|
||||
ByteSwapInplace(state->Gamepad.wButtons);
|
||||
ByteSwapInplace(state->Gamepad.sThumbLX);
|
||||
ByteSwapInplace(state->Gamepad.sThumbLY);
|
||||
|
||||
Reference in New Issue
Block a user