Gamepad Support

by Pokemonred200
Use Gamepads with the Webclient! [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Pokemonred200.Gamepad##version=3

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Pokemonred200.Gamepad##version=3

116 downloads
Version 3
Date added: Jun 27 2015
Last updated: Sep 26 2015
1 fan
Using the HTML 5 gamepad API (and some source code I downloaded when a similar library created by GatewayRa was on the website), I've created an interface to allow Xinput (or DirectInput) gamepads to be used in BYOND games via the webclient. Currently, button values are stored with the buttons[] and abuttons[] lists on the client (for regular button presses and pressure sensitive button presses, respectively), and the axes values are as well, via the axes[] list. Button presses/releases can also be detected via the DownedButton()/ReleasedButton() events. More Details coming in the future.

Comments

Bandock: (Aug 19 2015, 11:50 pm)
This library should work properly soon on Chrome since there is a bug in Chrome that causes issues with the Gamepad API.