-
-
Notifications
You must be signed in to change notification settings - Fork 200
Android/Meta Quest 3 input capture/emulation #217
Description
Hi there,
First of all, thank you for this amazing & actively developed/maintained tool! I tried to run it on my new Meta Quest 3 VR set today and I was able to run it on dummy emulation mode! Heres the steps to reproduce:
1 - Since Meta OS is based off of android, I knew I could download this software from(nix) or compile it myself.
2 - I sideloaded F-Droid, made it runnable via "Mobile VR Station" sideloading app on Meta Store. It doesn't root the device but enables certain permissions so .apk executables can be downloaded/viewed & run on Meta OS. Meta Corp made certain privilege escalations limited, however they do support people to sideload applications as promised by Mark Zuckerberg himself on his metaverse keynote.
3 - I downloaded/run "nix-on-droid" application/apk from F-Droid. This boots up a Termux app with nix downloaded.
4 - I was able to download both 24.05 and unstable branches of lan-mouse from nixpkgs.
5 - lan-mouse library complained about $XDG_RUNTIME_DIR variable not set so I set it to:
export XDG_RUNTIME_DIR=$(pwd)6 - voila! I could run lan-mouse -f cli and connect to my laptop keyboard! My laptop runs on Hyprland/wayland with xdg-desktop-portal enabled. I was able to see all mouse and keyboard events of my laptop keyboard in my Meta Quest 3 headset!!
Now I need an android input emulator 😅 I've checked the source code, seems like this is the only emulation missing(apart from iOS perhaps).
a) Would you be interested in building/testing this? If not, any information on where I can learn about input capture/emulation on android would be very helpful.
Perhaps we can even reach out to Meta to financially sponsor this initiative, given this would enable seamless integration of keyboards, enhance their OS/product offering for productivity use-cases. Maybe I can help with this as well but haven't checked this project source code in depth yet to see how the current automated testing infrastructure works(although I'm well-versed in rust 😅 ).
b) If you're not interested in building this, do you know what alternative software/solution I could use today to share my laptop keyboard with my Meta Quest 3 seamlessly?
Thanks again for your interest and all this work!
P.S I made this laptop keyboard <> VR/Android wireless integration working with KDE Connect: https://www.linkedin.com/feed/update/urn:li:activity:7254495494696001536/ It ignores the "Enter", "Crtl" key on certain apps/text inputs, which is a big deal. Investigating that bug now...