takahirox / nes-rust

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

Key pad button don't work in web apps on mobile #69

Closed takahirox closed 4 years ago

takahirox commented 4 years ago

Key pad buttons don't work in web apps on mobile. I tested on Android Chrome, OculusBrowser, and Firefox Reality.

DOM button event seems be fired but somehow input data doesn't seem to be sent to the emulator correctly.

takahirox commented 4 years ago

On laptop,

while on Android Chrome (maybe and Firefox Reality)

So pad press input is immediately canceled by pad release input. Probably we should use other event for mobile.