takahirox / nes-rust

NES emulator written in Rust + WASM
MIT License
208 stars 24 forks source link

Improve input controller UI/UX in VR #85

Open takahirox opened 4 years ago

takahirox commented 4 years ago

I added the input controller prototype in VR mode. User can push a button if XR input device touches a button of a big controller.

image

I realized this approach has some problems. First, fine user control is hard. Second, it doesn't work for 3dof controllers.

An solution idea from Kevin is mapping device controller buttons to NES input controller buttons, for example touchpad axes to cursor, trigger and touchpad press to A/B buttons.

https://www.w3.org/TR/webxr-gamepads-module-1/#xr-standard-gamepad-mapping