SNES controller
After breeezing through the LIRC stuff, I was ready for what would surely be the next trivial step, getting a SNES controller working in openelec.
......
WRONG
openelec does not offer any sort of controller support that isnt first dumped into the linux joystick system, and even then, the keymap from the joystick didnt seem to work all the time.
I tried various solutions and found 1 that almost worked
https://github.com/petrockblog/SNESDev-RPi
I identified what he was doing, and then modified it, heavily, he was using uinput and making a js dev, which I would then have to still use a keymap to pump into XBMC.
All the joystick stuff, gone.
Next I changed it to have all key presses simulate keyboard events instead, removed the multi-state single button support, removed config file reading, removed NES controlled support, removed 2nd controller support.
Compiled it on my laptop, shot it over and.....
it didnt work
flipped the clock and latch pins in code, recompiled... and success!
To the autostart.sh we need to add the following:
modprobe uinput
modprobe joydev
/storage/SNESDev &
I will put a link here soon to the compiled file
only took 30 mins start to finish, awesome!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.