webbasan / HotasCtrl

A small command line tool to setup lighting and display on the Saitek/MadCatz X52/X52pro.
MIT License
15 stars 3 forks source link

HotasCtrl

A small command line tool to setup lighting and display on the Saitek/MadCatz X52/X52pro.

It is written in Java, so a JRE is required, at least version 7. The JAR-file is an executable JAR bundled with all dependencies. It should work on Windows and Linux also, but is currently only tested on OS X.

The tool will print a usage description when no args or unknown args are given.

Arguments consists of a keyword denoting a subsystem and one or more parameters. Any number of subsystems can appear on the command line, even the same subsystems can appear multiple times. The setup will be executed in the order of the appearance. Keywords and parameters are case-insensitive.

Valid Arguments:

Examples:

java -jar HotasCtrl.jar light all on led all on

java -jar HotasCtrl.jar light all half led all amber led I red led POV green led T1 green led T2 amber led T3 red text "Elite: Dangerous\n Welcome\n Cmdr Jameson"

Thanks, Acknowledgments:

The included SaitekX52pro class was created and "thrown over the wall" by Antony T. Curtis in the "Mac Elite: Dangerous" forum. It helped me to get started, because he already sorted the low-level stuff of the Saitek SDK out and the code pointed me to the USB4Java library.

It will may be replaced with something that fits better into the architecture, but that has currently no high priority for me.