antirez / load81

SDL based Lua programming environment for kids similar to Codea
BSD 2-Clause "Simplified" License
596 stars 62 forks source link

Feature request: Joystick support #40

Open seclorum opened 12 years ago

seclorum commented 12 years ago

It would be great to be using the nubs of the Open Pandora device, which can appear to the system as independent high-res joysticks.

For this reason, I have done the work. :) Please see the pull request: https://github.com/antirez/load81/pull/39

Up to 4 independent joystick devices can be used within LOAD81. For now, button support is not complete, but it should definitely be added as soon as possible (there are no 'joystick buttons' on the Pandora - all buttons are normal keyboard buttons, include A/B/X/Y, and triggers).

Work on adding joystick buttons (and other joystick features, such as 'hats' and 'trackballs' type inputs) should be completed.

antirez commented 12 years ago

I think it's a good addition indeed, especially since there is the OpenPandora out there, otherwise joysticks are not very common this days unfortunately. There are things to fix in the patch, from the POV of the feature it's ok for me.

seclorum commented 12 years ago

Please tell me what to fix and I will re-submit.

antirez commented 12 years ago

I just wrote a detailed list in the pull request, if something does not sound right to you let's talk before to implement it so that we can find the best solutions. Thanks.

seclorum commented 12 years ago

No, it all sounds fine. I hope you can find some joysticks in the meantime! I highly recommend the iControlPad: http://icontrolpad.com .. this will give you a good controller for future use too! Can't have a C64 revival without joysticks! :)

antirez commented 12 years ago

Thanks :) the iControlPads are very cool indeed.

seclorum commented 5 years ago

TODO: extend joystick support to general USB gamepads, etc.