manossg
Posts: 1
Joined: Wed Mar 11, 2020 10:19 pm

At wit's end with joystick

Wed Mar 11, 2020 10:29 pm

Hello, fine people!

I have only recently gotten myself a nice custom made joystick controller to use with my RPi4.

Problem is that none of my emulators (FS-UAE, VICE, Retropie) see this joystick. I have used the jstest application and the joystick is found and everything seems to works fine, but nothing in the emulators. I have contacted the manufacturer and he also feels baffled about that.

Please, help me, I am sure I am doing something wrong here but I cannot figure out what.

Note 1. I also have a competition pro joystick and it works fine.
Note 2. I have tested the custom joystick with a lubuntu laptop that I have and it's the same problem (jstest recognizes the joystick, but nothing in the emulators). In Windows 10 the joystick works like a dream.

Thanks in advance!

rickticktock
Posts: 25
Joined: Mon Aug 20, 2018 10:13 am

Re: At wit's end with joystick

Fri Apr 03, 2020 3:57 pm

I say chaps,
I have a similar problem with a PS3 joystick. Got it pairing with Bluetooth but then in the terminal...

pi@raspberrypi:~ $ jstest /dev/input/js0
Driver version is 2.1.0.
Joystick (Sony PLAYSTATION(R)3 Controller) has 6 axes (X, Y, Z, Rx, Ry, Rz)
and 17 buttons (BtnA, BtnB, BtnX, BtnY, BtnTL, BtnTR, BtnTL2, BtnTR2, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR, (null), (null), (null), (null)).
Testing ... (interrupt to exit)
Axes: 0: 0 1: 0 2:-32767 3: 0 4: 0 5:-32767 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off 13:off 14:off 15:off 16:off

The bottom line (wrapped) contains all the info, changing as the sticks and buttons change, so how to import that into a Python program at regular intervals? As a string would be a good start, then I'd split it into variables which ultimately control stuff over the GPIO.
TTFN
rickticktock

Return to “Beginners”