Monday, April 29, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 11996  / 1 Year ago, wed, february 1, 2023, 9:21:14

I'd like to know if there is any alternative to QJoyPad, I've tried to install it, but it's only available from the source and is not possible to compile it, because of some errors. Anyway, you can't install it from a deb package, because it was packed into deb for the last time in 2004-09-19 according to its official web-page in Source Forge.


So I'm here asking for a software recomendation or an alternative to QJoyPad.


What's QJoyPad:



A QT-Based program that takes input from joystick/gamepad devices and produces keyboard or mouse activity in XWindows. Great for games with no or mediocre joystick support as well as for emulation. Easy to set up. Supports any number of devices.
From: Source Forge



Edit:


The error message is the following:


Error: you will need libxtst to compile this program

And this compiler (I think) ins't available in the repository, just it's libxtst-doc.


More From » software-recommendation

 Answers
6

Clear alternatives are joy2key, which is available in the repositories, and rejoystick, which I discuss further below.



1) Fixing compilation problems



However, I believe it is possible to sort out your compilation problems with qjoypad now that you have posted the error messages. It is worth trying to get it compiled as you may find the QT interface much easier to use than the command-line one of joy2key.



Your error message suggests that you need libxtst6 and libxtst-dev, which have been in the repositories for the last 6 Ubuntu releases. So please run



sudo apt-get install libxtst6 libxtst-dev


If you have any further errors you may need to ensure that you have the QT development libraries installed, as they are necessary for building the interface.



sudo apt-get install libqt4-dev


More information is detailed in my answer here, which explains how to compile qjoypad and then set up your joystick.






2) Alternatives



a) joy2key



In the package description, it is noted that




joy2key allows one to choose keyboard events for joystick axes and buttons,
so that a joystick or gamepad can be used with an application that doesn't
have native joystick support.




Unfortunately, there is no gui (or none that I know of) that yet exists for joy2key, so an essential read is man joy2key and, for example, this and other threads on Ubuntuforums, which go into detail as to how to set it up, although it can be tricky to get it right.



Even though you can save your joy2key configuration in .joy2keyrc; it is difficult to share configurations, as the joystick needs calibrating properly on your machine. However, you may be able to find some layouts for your joystick/gamepad on other forums if you face problems setting your own up.



b) Rejoystick



If you have problems with joy2key, rejoystick would probably be better, as it has a gui (see screenshot) that you use to setup your joypad (see screenshot). You can install the deb from sourceforge. You connect your joypad, launch the settings gui by entering rejoystick in terminal, and then you enter your settings and click ok to save the profile to ~/.rejoystickrc. Then you just run rejoystick -d before you launch your game; enter killall -s SIGKILL rejoystick to clear the current bindings in effect. It does seem to work, but I'm not sure if you can have different profiles like you can with qjoypad.



enter image description here



In short, I highly recommend trying the solutions given further above to solve the compiling problems with qjoypad, as joy2key can be a pain to get set up correctly, although rejoystick is much simpler and may be useful.


[#33282] Friday, February 3, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
enefiama

Total Points: 43
Total Questions: 125
Total Answers: 102

Location: Gabon
Member since Sat, Jul 25, 2020
4 Years ago
enefiama questions
;