Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility to Portal Reloaded #136

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

stsichler
Copy link

In Portal Reloaded, a third (time) portal can be placed.

This patch adds another action ("ThirdAttack") for that, by default mapped to left trigger.

In order for this to work, it is also required to fix processing of digital inputs in general:
The previous code (see PressedDigitalAction()) correctly sent "button pressed" events to the game when a button changed state from released to pressed, but re-sent "button released" events repeatedly at all time when the button was in released state.
This is supposed to be a bug and somehow prevented the freshly added ThirdAttack action from being correctly processed by the game engine.

This PR also fixes this and thus closes issue #109.

Note that a short test showed that compatibility to Portal 2 (or Portal Stories: Mel) is unchanged by this PR.

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