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

Add screentop tracking mode support. #319

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

JamesProvan-UL
Copy link
Collaborator

This pull request adds the option for LeapJS to select Screentop tracking mode with the newly open sourced Ultraleap Tracking WebSocket server.

Usage

Initialise screentop mode when connecting to the websocket server:

let controller = new Leap.Controller({optimizeScreentop: true}).connect();

And toggle screentop mode on / off:

controller.setOptimizeScreentop(true);
controller.setOptimizeScreentop(false);

Detail

Setting the mode to false will default back to Desktop tracking mode. You must match a setOptimizeXYZ(true); call with a corresponding setOptimizeXYZ(false); call to get back to Desktop mode. If you instead use the other optimize tracking mode call setOptimiseZYX(false); it will not change the mode to Desktop.

Screentop tracking mode was added to the now open sourced Ultraleap Tracking WebSocket which allows LeapJS support with Ultraleap Gemini V5 and above.

@JamesProvan-UL JamesProvan-UL merged commit 131095b into leapmotion:master Feb 24, 2025
1 check failed
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