robotpy / robotpy-websim

OBSOLETE: Experimental robot simulation html interface
6 stars 1 forks source link

Gamepad/joystick support? #7

Closed virtuald closed 5 years ago

virtuald commented 9 years ago

Looks like it's mainstream: https://developer.mozilla.org/en-US/docs/Web/Guide/API/Gamepad

amorygalili commented 9 years ago

It would be pretty cool if we could set values with joysticks instead of having to move a slider. I'll mess around with this when I get the chance.

amorygalili commented 5 years ago

Added support for this. Tested it with an xbox one controller and it worked. My switch pro controller didn't though, so some controllers aren't supported. It also sees POV as button values, and I don't think there's an easy way to figure out which buttons map to POV.

virtuald commented 5 years ago

Nice!