mirror of https://github.com/nirenjan/libx52.git
Prior to this change, the assumption was that localtime/gmtime would never fail, regardless of the time value provided to it. However, testing on an Ubuntu 20.04 machine revealed that the representable range of time_t was about 56 bits, values that exceed a 56 bit representation would cause localtime/gmtime to return a NULL pointer. This change replaces the use of localtime/gmtime with their corresponding thread-safe variants, and checks the return value against NULL. If it matches a NULL value, then it will return an error and not update the clocks. |
||
---|---|---|
.github | ||
docs | ||
kernel_module | ||
lib | ||
m4 | ||
po | ||
tests | ||
tools | ||
udev | ||
utils | ||
.gitignore | ||
.travis.yml | ||
.travis_build.sh | ||
AUTHORS | ||
CONTRIBUTING.md | ||
ChangeLog.md | ||
Doxyfile.in | ||
INSTALL.md | ||
LICENSE | ||
Makefile.am | ||
README.md | ||
autogen.sh | ||
configure.ac | ||
gettext.h |
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 and installing
See INSTALL.md