massung / r-cade

Retro Game Engine for Racket
https://r-cade.io
Other
273 stars 13 forks source link

Joystick support #32

Open yurkobb opened 1 year ago

yurkobb commented 1 year ago

First, thanks for developing this. It seems to match perfectly what I want to do for an (art) project. I wonder though, wouldn't it be nice to expose joystick controls similar to (mouse-x/y)? Maybe something like (joystick-axis axis), (joystick-btn btn)?

Edit: or shorter names, with the ability to select active joystick: (joyaxis [joystick 0] axis) / (joybtn [joystick 0] btn).