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

Standalone Input subsystem & InputNode #1822

Merged
merged 8 commits into from
Nov 2, 2023
Merged

Standalone Input subsystem & InputNode #1822

merged 8 commits into from
Nov 2, 2023

Conversation

Jowan-Spooner
Copy link
Collaborator

@Jowan-Spooner Jowan-Spooner commented Oct 22, 2023

The Input handler is now a standalone Input subsystem.
This new subsystem also contains all the relevant methods regarding autoadvance and autoskip, each in it's own class.

Skippable has been renamed to _text_reveal_skippable internally. A rework of the text settings (UI) should follow.

A InputNode has been added that will (when present) handle all mouse based inputs. This allows limiting mouse inputs to an area of the screen and also makes them aware of elements in front.

  • For other inputs _unhandled_input is now used
  • If no InputNode is present the InputSubsystem will handle MouseInputs itself with the _input() method (as mouse input is never unhandled, it seems).

The Input handler is now a standalone Input subsystem.
This new subsystem also contains all the relevant methods regarding autoadvance.

Skippable has been renamed to _text_reveal_skippable internally. A rework of the text settings (UI) should follow.

A InputNode has been added that will (when present) handle all mouse based inputs. This allows limiting mouse inputs to an area of the screen and also makes them aware of elements in front.
- For other inputs _unhandled_input is now used
- If no  InputNode is present the InputSubsystem will handle MouseInputs itself with the _input() method (as mouse input is never unhandled, it seems).
@Jowan-Spooner Jowan-Spooner merged commit 2a23ff0 into main Nov 2, 2023
@Jowan-Spooner Jowan-Spooner deleted the input-update branch December 2, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant