Skip to content

Conversation

@c-mahn
Copy link

@c-mahn c-mahn commented Jun 14, 2025

This commit adds a new signal to the Function Pointer, that reports back, if the FunctionPointer is interacting with something like a menu.

This commit adds a new signal to the Function Pointer, that reports back, if the FunctionPointer is interacting with something like a menu.
@c-mahn
Copy link
Author

c-mahn commented Jun 14, 2025

I would like to add, that this is way simpler to understand than the undocumented XRToolsPointerEvent #670

@c-mahn
Copy link
Author

c-mahn commented Oct 30, 2025

I would love to get this merged please.

@BastiaanOlij
Copy link
Member

Sorry @c-mahn , didn't see this till now.

It seems duplicate of the logic that is already handled by XRToolsPointerEvent but I agree that it's a little unclear how this works.

XRToolsPointerEvent manages events on the pointer interacting with another object.

When we look at the code XRToolsPointerEvent.moved(self, new_target, new_at, new_at), what is happening behind the scenes is that this creates a new XRToolsPointerEvent with the event data, and it will emit the signal pointer_event with that event as a parameter both on the pointer and the target.

So you can simply connect the pointer_event signal and you will get pointer events.

In your case you would want to react on event.type == XRToolsPointerEvent.ENTERED and/or event.type == XRToolsPointerEvent.EXITED

@BastiaanOlij BastiaanOlij added enhancement New feature or request discussion Lets discuss this! labels Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discussion Lets discuss this! enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants