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

Xr controller as input #32

Closed
DerKorb opened this issue Apr 1, 2024 · 6 comments
Closed

Xr controller as input #32

DerKorb opened this issue Apr 1, 2024 · 6 comments

Comments

@DerKorb
Copy link

DerKorb commented Apr 1, 2024

Is this possible yet? It looks like I would have to get the input from my xr controllers (quest3) and somehow feed them intro react fibre's event system to have buttons etc interact with my controller.

@bbohlender
Copy link
Contributor

yes its possible, and there is nothing needed from uikit to make that happen:
https://x.com/BelaBohlender/status/1763258175770235046

@DerKorb
Copy link
Author

DerKorb commented Apr 1, 2024

Is there example code somewhere? I must be doing something wrong, my hands and controllers do not interact with the UI

@DerKorb
Copy link
Author

DerKorb commented Apr 1, 2024

Looks like they used koestlich/natuerlich in that twitter video.

@bbohlender
Copy link
Contributor

Yes, it currently required natuerlich, because react-xr does not use the event system of R3F, but natuerlich does :)

@bbohlender
Copy link
Contributor

There is not yet any example code, but essentially you just have to add natuerlich to your uikit scene

@DerKorb
Copy link
Author

DerKorb commented Apr 2, 2024

Yeah, everything works now with natuerlich. Awesome libraries, them and uikit!

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

No branches or pull requests

2 participants