It has been a couple of years (which means 4 or 5 Fedora releases ago)
since I did this, but I used to be able to play Xonotic using my Xbox 360
Wireless controller. Now I cannot get the controller to work properly in
F32 (it works in Windows 10 so I know the hardware is OK).
This most likely has something to do with the move from xboxdrv (which is
no longer available in Fedora) to xpad kernel driver, and/or the move from
the old js driver to evdev. The xpad driver comes with the current kernel,
but what I cannot figure out is how to calibrate the controller. If I run
Xontic with the controller connected, the game world just spins
counterclockwise. This is a symptom of the controller needing to be
calibrated, but I don't know how to do it. I tried using "jscal", but if I
run "jscal -c" to calibrate it, it appears to work but doesn't. I can
immediately run "jscal -t" and it will say it is not calibrated, and
running "jstest" also shows it is not calibrated (several of the axes are
not centered, i.e. show nonzero values in jstest).
I attempted to download and compile xboxdrv, but it does not work due to
Python 2 vs. 3 incompatibilities, and it doesn't look like any work has
been done on xboxdrv in quite some time. If I try to make it, I get this:
root@snowcrash xboxdrv-linux-0.8.8]# make
scons
scons: Reading SConscript files ...
File "/local/src/xboxdrv-linux-0.8.8/SConstruct", line 34
print target
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean
print(target)?
make: *** [Makefile:24: xboxdrv] Error 2
Certainly looks like Python version incompatibility.
Can anybody point me to information on how to use an Xbox 360 controller on
F32, or how to calibrate it when using the xpad driver? I have done a lot
of Googling, but most of the articles I found mention things like "apt-get
install xboxdrv", showing they were written for Ubuntu rather than Fedora
and are wanting to use the xboxdrv driver.
Thank you,
--Greg