Skip to content

Forward inputs to XR rigs parented under a T5Manager - #76

Open
Jonathan-Stevens wants to merge 1 commit into
GodotVR:mainfrom
Jonathan-Stevens:upstream/input-forwarding
Open

Forward inputs to XR rigs parented under a T5Manager#76
Jonathan-Stevens wants to merge 1 commit into
GodotVR:mainfrom
Jonathan-Stevens:upstream/input-forwarding

Conversation

@Jonathan-Stevens

Copy link
Copy Markdown
Contributor

With this fix for #75, T5Manager now forwards the events that it observes during _input() to each child XR rig that it is aware of.
This enables nodes within a XR rig to receive input events.

@patrickdown

Copy link
Copy Markdown
Collaborator

Would you mind rebasing these changes onto the current main so that the github CI can run?

@Jonathan-Stevens
Jonathan-Stevens force-pushed the upstream/input-forwarding branch from 4a96705 to 0f56161 Compare October 7, 2025 20:22
@patrickdown

Copy link
Copy Markdown
Collaborator

This is a problem that needs to get solved and this solution works. However, I'm not as familiar the Godot input system as I should be and I am worried that there are subtilities here that I'm not aware of. I think I would feel better if we put the forwarding behind an option to turn it on and off.

@Jonathan-Stevens
Jonathan-Stevens force-pushed the upstream/input-forwarding branch from 0f56161 to 4de8633 Compare October 17, 2025 01:49
This enables nodes within a XR rig to receive input events when they implement _input().
@Jonathan-Stevens
Jonathan-Stevens force-pushed the upstream/input-forwarding branch from 4de8633 to 67801b7 Compare October 17, 2025 01:50
get_parent().add_child.call_deferred(glasses_node)

func _input(event):
# JSTEVENS@T5: As I'm porting this logic from C#, my instinct is to mirror

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do need to call super(event) but in this case there is no _input method in the base.

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