Posts: 9
Threads: 1
Joined: Mar 2019
Reputation:
0
Hi Everyone
so basically the up direction on my analog stick is not working but the down direction works perfectly... since they are the same axis... could anyone confirm that this means the analog stick itself is faulty... or is there something else it could be, as I don't understand how it could be anything else, seen as how they share the same connection and operate off the same line of code... right???
Thanks
Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
I have seen a misconfiguration act like that before. Can you post the output from this command?
cat /etc/modprobe.d/mk_arcade_joystick.conf
Maybe you already did this...
In the /home/pi/Freeplay/mk_arcade_joystick_rpi directory, you can run 'make config' and it may help you get it configured properly.
So, it'd go something like this (assuming the system is connected to the internet):
cd /home/pi/Freeplay/mk_arcade_joystick_rpi
git pull
./install.sh
Then, I'd probably reboot. After the reboot,
cd /home/pi/Freeplay/mk_arcade_joystick_rpi
make config
See how that works.
Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
For now, if you have a USB keyboard, just try this. (if you can connect to a HDMI monitor/TV, that can be easier to read/photograph)
Plug in the keyboard. Boot up the system. Hit F4 on the keyboard. Type the following command.
cat /etc/modprobe.d/mk_arcade_joystick.conf
Post a photo of the screen.
Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
Well, that screen photo you sent me doesn't show the whole story. I was trying to figure out an elegant way to get all the info.
The NOT elegant way is this...
Instead of cat /etc/modprobe.d/mk_arcade_joystick.conf, do this command.
more /etc/modprobe.d/mk_arcade_joystick.conf
Since there is too much info to fit on the screen, more will break it up. You'll have to run the command, then take a photo, then hit enter, then take another photo, etc. I'm hoping this will get the line that I'm looking for.
The one I'm looking for is the ONLY (hopefully there isn't more than one) line that starts with the word options (as opposed to #options). So, there should be one that doesn't have a hash tag in front of it.
Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
After that, you probably need to re-define the controls in RetroPie.
At the main menu, hit START. Then choose CONFIGURE INPUTS (or something similar). Go through the whole thing. If you have a keyboard connected, it's easier, because you can hit the down arrow to skip the inputs you're not defining. At the end, it'll ask for the hotkey. If you want to use the power button, double-tap it there. Otherwise, maybe use SELECT as the hotkey button.
Posts: 1,610
Threads: 19
Joined: Feb 2012
Reputation:
29
At the command prompt, you can also use the following commands to test the joystick.
jstest /dev/input/js0
jstest --event /dev/input/js0
evtest