mirror of https://github.com/nirenjan/libx52.git
This is on a separate branch because during performance testing, this approach, using a fixed switch statement to determine the mapped entry, performs much worse than the original lookup table method. On Ubuntu 16.04, with gcc 5.4 and clang 3.8, the switch case took about 25% more time with clang, but almost 70% more time with gcc compared to the lookup table. |
||
---|---|---|
cli | ||
docs | ||
kernel_module | ||
libx52 | ||
man | ||
test | ||
tools | ||
udev | ||
util | ||
.gitignore | ||
.travis.yml | ||
AUTHORS | ||
COPYING | ||
LICENSE | ||
Makefile.am | ||
README.md | ||
autogen.sh | ||
configure.ac |
README.md
Saitek X52Pro joystick driver for Linux
This project adds a new driver for the Saitek/MadCatz X52 Pro flight control system. The X52 pro is a HOTAS (hand on throttle and stick) with 7 axes, 39 buttons, 1 hat and 1 thumbstick and a multi-function display which is programmable.
Currently, only Windows drivers are available from Saitek PLC, which led me to develop a new Linux driver which can program the MFD and the individual LEDs on the joystick. The standard usbhid driver is capable of reading the joystick, but it cannot control the MFD or LEDs.
Most of the extra functionality can be handled from userspace. See the individual folders for README information.
Building
Build has been tested on Ubuntu 14.04 LTS on x86_64.
Prerequisites
You will need the following packages:
- automake
- autoconf
- libusb-1.0-0-dev (Package name may vary across distributions)
- python (2.6 or greater)
Installation
- Clone the repository
- Run autogen.sh
- Run configure; make and sudo make install.