libx52/kernel_module
nirenjan d3c55da89d Create HID driver for Saitek X52 and X52 Pro
This change replaces the old USB driver with a more modern HID driver.
This uses the HID framework, which means that we don't have to deal with
the USB transport, and only have to parse and report input events.

[skip ci]
2020-08-12 01:11:15 -07:00
..
Makefile Create HID driver for Saitek X52 and X52 Pro 2020-08-12 01:11:15 -07:00
README.md Create HID driver for Saitek X52 and X52 Pro 2020-08-12 01:11:15 -07:00
hid-saitek-x52.c Create HID driver for Saitek X52 and X52 Pro 2020-08-12 01:11:15 -07:00
x52joy.c Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52joy_commands.c Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52joy_commands.h Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52joy_common.h Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52joy_input.c Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00
x52joy_map.h Add SPDX license identifiers in all files 2018-04-18 12:19:29 -07:00

README.md

Kernel driver for Saitek X52 and X52 Pro

This folder contains a loadable kernel module for the Saitek X52 and X52 Pro HOTAS. This improves upon the standard hid-generic driver by reporting both the left-right and up-down motion of the thumb stick.

However, it changes the buttons that are reported by the joystick, and thus, may not be suitable for all applications.

Building

This directory is deliberately not integrated with the top level Autotools based build framework.

Install the Linux headers for the currently running kernel. On Ubuntu, this can be done by running sudo apt-get install -y linux-headers-$(uname -r).

Run make. This will build the module from source.

Installing the kernel module

Once you have built the kernel module, run sudo insmod saitek_x52.ko from the current directory. With a recent enough kernel, the driver should switch automatically. Otherwise, simply disconnect and reconnect your X52.

Reporting issues

Please report any issues seen as a Github issue.