libx52/libx52
nirenjan 732bc21b65 fix: Address compiler warnings
When enabling --warnlevel=3 during Meson setup, the build threw up
several warnings, mostly related to either unused parameters, or
sometimes an integer type mismatch. This commit addresses all of those
changes and ensures that the build does not contain any unnecessary
warnings.
2026-03-19 00:10:18 -07:00
..
Makefile.am fix: Handle NULL pointer dereferencing in libx52 2026-03-08 23:13:16 -07:00
README.md Move libx52 to top level 2021-07-29 21:41:07 -07:00
libx52.h build: Migrate to meson build 2026-03-12 10:20:01 -07:00
libx52.pc.in Fix Cflags and add libx52util.pc 2021-08-03 12:53:26 -07:00
meson.build fix: Update pkgconfig to use correct details 2026-03-12 15:35:11 -07:00
test_strings.c fix: Address compiler warnings 2026-03-19 00:10:18 -07:00
x52_commands.h Move libx52 to top level 2021-07-29 21:41:07 -07:00
x52_common.h Use libusb hotplug API to automatically detect disconnection 2021-09-14 09:03:23 -07:00
x52_control.c fix: Address compiler warnings 2026-03-19 00:10:18 -07:00
x52_core.c fix: Address compiler warnings 2026-03-19 00:10:18 -07:00
x52_date_time.c Move libx52 to top level 2021-07-29 21:41:07 -07:00
x52_mfd_led.c Move libx52 to top level 2021-07-29 21:41:07 -07:00
x52_strerror.c Move libx52 to top level 2021-07-29 21:41:07 -07:00
x52_stringify.c Fix stringification of libx52_led_state 2021-08-25 14:09:28 -07:00
x52_test_gen.py fix: Address compiler warnings 2026-03-19 00:10:18 -07:00
x52_tests.json Move libx52 to top level 2021-07-29 21:41:07 -07:00

README.md

X52 Pro MFD library

This is a library which communicates using libusb-1.0 with the Saitek X52 Pro HOTAS. The library provides several functions to control the LEDs and MFD of the above HOTAS.

Supported functions

  • Set the LED state of all LEDs
  • Write text to each of the MFD lines
  • Set the date/time on the MFD
  • Make the clutch and hat LEDs blink
  • Display the "SHIFT" indicator in the MFD

Note that when writing text to the MFD, the line length is limited to 16 characters. While you can pass a longer string, the library will only consider the first 16 characters for writing to the display.