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:
Hyper
2025-02-09 21:18:59 +00:00
committed by GitHub
parent 0b8b243404
commit fc99db7c97
5 changed files with 88 additions and 67 deletions

View File

@@ -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);