Open alantrrs opened 5 years ago
Are you invoking term.focus()
in your scenario?
If you could share the code you've got so far I think that'd help with the debugging. 😁
This might also just be an Oculus Browser issue. I don't think I've tried using it yet. You could also try using Firefox Reality to see if Xterm works with it better.
I'm invoking term.focus()
which seems to work fine, I think I tried Firefox Reality too but will re-check tonight. I'll share my code as well, thanks for the help!
This is the frontend I'm using to test right now: https://github.com/alantrrs/aframe-xterm-component/blob/master/test.html, running the same server.js
you setup on the backend.
I tested Firefox Reality and for some reason it's super slow, it takes ages to load the data into the console, not sure what's causing that. When focusing on the terminal the virtual keyboard does pop up and allows typing, however it seems like the bluetooth keyboard isn't working at all within Firefox Reality. It might be that the bluetooth keyboard is experimental. :disappointed:
I haven't tested my BT keyboard in Firefox Reality on the Quest yet, but I remember it working on the Daydream. I just had to make sure the keyboard was set up before I launched the app.
Have you checked if the server is receiving the input? Also, are there any errors in the JS console (not sure if that even exists on the Quest). I might have time to look at it tonight, else I think I'll have time on Sunday.
Good questions, I'll try to use the remote debugger to see if there are any errors and will try to use a regular input to see if I can communicate with the backend.
Hey, really cool project! I'm trying to get an xterm working on the oculus browser without Aframe or being on VR mode. I noticed that the keyboard events are not going through. The demo here https://xtermjs.org/ works fine on regular browsers but not on the Oculus browser. Focusing via "click" (using the controllers trigger) seems to work fine, but once focused the terminal doesn't seem to be responding to keyboard events (using bluetooth keyboard). I've tested your project and it is responding fine to keyboard input but it's not clear to me what's the difference. Any chance you can point me in the right direction?
Thanks!