A JS simulator for testing the Gamepad API.
This module creates a virtual gamepad on the screen that triggers the same events that a real gamepad gamepad would.
- Import the file to your project
- Create the virtual gamepad on the screen with
gamepadSimulator.create() - Simulate the gamepad connection with
gamepadSimulator.connect() - Click ont he icons and axes and read the values using the standard
navigator.getGamepads() - Simulate the gamepad disconnection with
gamepadSimulator.disconnect() - Remove the virtual gamepad from the screen with
gamepadSimulator.destroy()