Re: USB Joystick on the Raspberry Pi?
Posted: Sun Mar 18, 2018 11:28 pm
Hi Chaps,
I’ve finally stopped procrastinating, dug out the Pi, and started having a bash at sorting out some joystick support.
So far, I have built a module (‘USBJoystick’) which manages any USB HID-compliant joysticks that are attached. There are some star commands which you can use to view live data and configure a mapping so that the modern joysticks look like the old ones. The module emulates the Acorn (Joystick_Read SWI) and Serial Port (Joystick_Status SWI) interfaces, so games which work with either of those should work.
It is still early days, and I need to clean up some rough edges, but I thought this could be the place to get testers and feedback. I am highly conscious that I only have one USB device to test with! (a Mayflash Atari 9-pin dual joystick to USB converter) Obviously, more devices would help. Oh, and I’ve only tried it on a Pi, but it should work on any RISC OS 5 machine with USB.
Future plans include adding keyboard and mouse emulation, so that any game can be joystick controlled. I’ve only tested it with a couple of the games which Jon has publically released that support the Serial Port Joystick interface (James Pond and SWIV) but they did work well.
Is anyone interested? Even some feedback on the idea would be a start. I will hopefully be able to post some alpha modules here, or perhaps via email.
Cheers,
Richard.
I’ve finally stopped procrastinating, dug out the Pi, and started having a bash at sorting out some joystick support.
So far, I have built a module (‘USBJoystick’) which manages any USB HID-compliant joysticks that are attached. There are some star commands which you can use to view live data and configure a mapping so that the modern joysticks look like the old ones. The module emulates the Acorn (Joystick_Read SWI) and Serial Port (Joystick_Status SWI) interfaces, so games which work with either of those should work.
It is still early days, and I need to clean up some rough edges, but I thought this could be the place to get testers and feedback. I am highly conscious that I only have one USB device to test with! (a Mayflash Atari 9-pin dual joystick to USB converter) Obviously, more devices would help. Oh, and I’ve only tried it on a Pi, but it should work on any RISC OS 5 machine with USB.
Future plans include adding keyboard and mouse emulation, so that any game can be joystick controlled. I’ve only tested it with a couple of the games which Jon has publically released that support the Serial Port Joystick interface (James Pond and SWIV) but they did work well.
Is anyone interested? Even some feedback on the idea would be a start. I will hopefully be able to post some alpha modules here, or perhaps via email.
Cheers,
Richard.