Skip to content

Instantly share code, notes, and snippets.

@mahuabuhua
mahuabuhua / index.html
Created September 2, 2024 02:37
Multi-input Maze 🎮
<!--
Originally just an idea and excuse to test the gamepad API 🎮, this spiraled out of control a little into a multi-input maze. You can navigate trough the maze, depending on your browser/os, by:
- clicking the up/down/left/rigt-buttons
- the arrow keys on your keyboard
- the WASD-keys on your keyboard if that is more your style
- by scrolling up/down or left/right
- by swiping if your device of choice has a touchscreen
- by tilting your device (if your device does not reuqire special permissions for that (i.e. is an iPhone))
- by typing up(), down(), left() or right() in the console
- and finally, by using a compatible gamepad, aka the original idea 🙃