Added Joystick/Gamepad support directly in browser

Hi guys,

I took the liberty to add support for joystick/gamepad directly in the JavaScript so no need for external key mapping tools. It works great with a PS4 controller over Bluetooth and should support Firefox, Safari and Chrome.

It maps gamepad buttons to the existing boat docker keystrokes to minimize code changes.

I linked the zip file with all the changes – not many.

https://drive.google.com/file/d/1oRlaSKqQxHDRf7UWP3xUcoptQb6K-Kfl/view?usp=sharing

Hope it helps, great job on the simulator!
Pedro Paixao paixaop@gmail.com

Leave a Reply

Leave a Reply