Skip to content

More consistent gamepad context sensitivity#7829

Merged
AJenbo merged 1 commit intodiasurgical:masterfrom
StephenCWills:gamepad-context-sensitivity
Mar 16, 2025
Merged

More consistent gamepad context sensitivity#7829
AJenbo merged 1 commit intodiasurgical:masterfrom
StephenCWills:gamepad-context-sensitivity

Conversation

@StephenCWills
Copy link
Copy Markdown
Member

This PR aligns the order of operations between GetLeftStickOrDPadGameUIHandler(), PerformPrimaryAction(), PerformSecondaryAction(), and PerformSpellAction() so that menu interactions work more consistently when multiple menus are open. As an example, if you managed to get the inventory and the speedbook open at the same time, gamepad would interact with the inventory but the info panel would only show the spell from the speedbook you happened to be hovering over. As another example, if you managed to get the char panel and speedbook open at the same time with stat points to distribute, the d-pad and analog stick would prioritize the char panel whereas the primary action button would prioritize the speedbook.

The PR also disables various padmapper actions when game menus are open. For example, you can no longer open and close the inventory while browsing a towner's store menus.

@StephenCWills StephenCWills force-pushed the gamepad-context-sensitivity branch from 388c99c to 49a016c Compare March 15, 2025 22:13
@AJenbo AJenbo merged commit 5855b31 into diasurgical:master Mar 16, 2025
23 checks passed
@StephenCWills StephenCWills deleted the gamepad-context-sensitivity branch March 16, 2025 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants