Skip to content

Conversation

@dkosmari
Copy link

To avoid performing game actions while activating a combo, this PR adds button suppression.

Whenever a combo is activated, the buttons flagged as triggered in that *PADRead() call will be disabled. So the game never sees the last set of buttons that activated a combo. When each disabled button is released, it's enabled again.

As an example, the screenshot plugin uses TV + LEFT by default. If the game reacts to the LEFT button, taking screenshots can interfere with normal gameplay. With this PR, if the user holds the TV button, and then presses LEFT, the game will not see the LEFT button being pressed.

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.

1 participant