google / mechahamster

Mecha Hamster is a game where you roll through customizable environments that you can share with your friends.
https://google.github.io/mechahamster/
Apache License 2.0
501 stars 199 forks source link

If there is no gyroscope, fall back to keyboard input #36

Open patm1987 opened 2 years ago

patm1987 commented 2 years ago

This is an imperfect attempt to better support ChromeOS. Some devices will not have a gyroscope but will have a keyboard for input. A full fix would probably also require touchscreen input (for phones without a gyro) and some sort of user toggle between gyro, touchscreen, and keyboard (for instance: a large chromebook would be very unweidly to tilt to play even if it has a gyroscope).