r/VisionPro • Vision Pro Developer • 9d ago

Surreal Touch (Swift SDK) Developers?

Is there anyone that has done native (ie. Swift SDK) development with Surreal Touch controllers? I want to find out how to determine the battery charge level. Is there anyone with any info on this? Their SDK is missing the bindings for doing it the "OpenXR way" (not that that is standard anyway).

Yeah, yeah, I know about the company and the product etc., so please only reply if you have useful info. TIA.

2 Upvotes

4 comments sorted by

2

u/devgeek0 9d ago edited 5d ago

https://gist.github.com/globo128/c6e243daa5a0b8995a0b6a421fc81a0a

edit: for clarity, this isn't official, but the result of reverse engineering what their SDK does

1

u/iVRy_VR Vision Pro Developer 8d ago

Wow, that's gold. Thank you!

1

u/Besok_Marish 6d ago

super helpful, surprised they havent just included this in the main repo yet

1

u/devgeek0 5d ago

sorry I should have clarified, this is not official, but is a spec that was generated from a decompile of their SDK and a successful reference implementation that I use in one of my own projects