joystick has only axis 4 and axis 5 how to configure for linapple?
-
Hello,
I use the linapple on my Retropie (raspberry pi 3b+ with an Ultimarc ipac2 keyboard encoder ).
Ipac2 interface is emulating / encoding arcade joysticks and buttons as two gamepads (Dinput mode).
If I test with jstest under retropie command line my joystick showing six axises but if iI move joystick there is physically onl three axises are existing= axises 2, 4 and 5 (axis 0, 1 and 3 not really existing).
I can edit nano /opt/retropie/configs/apple2/linapple.conf to change or remap buttons and the axises.
But if I change the joy0axis0 = 0 to the joy0axis0 = 4 and the joy0axis1 = 1 to the joy0axis1 = 5 nothing happens.
Maybe the linapple is not listening to the joystick which has more than 4 axises?
Because if I change the joy0axis0 = 0 to the joy0axis0 = 2 its working.
Is there any solution or hints how can I solve this issue?Kind Regards
Niyazi -
@niyoki said in joystick has only axis 4 and axis 5 how to configure for linapple?:
Maybe the linapple is not listening to the joystick which has more than 4 axises?
The
sdl1
library which Linapple uses for joystick support may not support more than 4 axis or may be mis-detecting the axis support on the encoder.Can you install the
evemu-tools
package and output the result fromevemu-tools /dev/input/jsX
where
/dev/input/jsX
is your joystick device. -
@mitu Hello, thank you for your quick answer.
I tried to install the evemu-tools.
sudo apt update
sudo apt install evemu-tools
I get this:
evemu-tools is already the newest version (2.7.0-1)
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
After that if I execute this command below:
evemu-tools /dev/input/jsX (for my case js0 or js1)
I get an error:
-bash: evemu-tools: command not foundBefore I tried with jstest /dev/input/js0 or jstest /dev/input/js0 My joystik has two axises 4 and 5 , also 2 trigger buttons acting as a axis 2 and 9 buttons for home, back, start, fire etc.
Driver version is 2.1.0.
Joystick (Ultimarc I-PAC 2) has 6 axes (X, Y, Z, Rz, Hat0X, Hat0Y)
and 16 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6, ?, ?, ?, BtnDead).
Testing ... (interrupt to exit)Kind Regards
Niyazi -
@niyoki said in joystick has only axis 4 and axis 5 how to configure for linapple?:
I get an error:
-bash: evemu-tools: command not foundSorry, the command is
sudo evemu-describe /dev/input/eventX
where
/dev/input/eventX
is the file corresponding to the joystick. You can check whicheventX
file is tied to the joystick by runningudevadm info /dev/input/event*
-
@mitu Hi, I tried to run both commands :
for the udevadm info /dev/input/event* command
https://pastebin.com/vJwd5FXBand for the sudo evemu-describe /dev/input/event0 command
https://pastebin.com/E10sE2A3Kind Regards
Niyazi -
@niyoki You can use pastebin.com if the text is too long.
-
@mitu Hi, I tried to run both commands :
for the udevadm info /dev/input/event* command
https://pastebin.com/vJwd5FXBand for the sudo evemu-describe /dev/input/event0 command
https://pastebin.com/E10sE2A3Kind Regards
Niyazi -
The output looks ok.
You can check withsdl-jstest
from https://github.com/Grumbel/sdl-jstest to see if the axis you want to configure work withsdl1
. This would rule out any issue withsdl1
not detecting properly the axis. -
@mitu I installed (it was not easy for the beginners like me) the sdl-jstest. Than I used this command: jstest-sdl --test 0 also jstest-sdl --test 1
Now my Joystick reacting only to axis2 (left and right trigger buttons) input and has 1 hat switch (using axis4 and axis5)
Kind Regards
Niyazi -
@niyoki said in joystick has only axis 4 and axis 5 how to configure for linapple?:
... and has 1 hat switch (using axis4 and axis5)
So it looks like axis4/5 are not considered as an analog control, but as a Hat - probably that's why
linapple
doesn't use them.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.