libstratcom  1.1.0
A cross-platform library for interfacing with the Microsoft SideWinder Strategic Commander
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Pages
A cross-platform library for interfacing with the Microsoft SideWinder Strategic Commander

SideWinder and SideWinder Strategic Commander are trademarks of Microsoft Corporation.

libstratcom and its authors are not affiliated with Microsoft in any way.

Basic Usage

Before calling any other library function, you should initialize the library by calling stratcom_init().

Use stratcom_open_device() to connect to the Strategic Commander. Note that no more than one application can be connected to the device at the same time. Upon successful execution, stratcom_open_device() will return a pointer to a stratcom_device struct, which most library functions require as a first argument.

Read the current state of axes and buttons from the device by calling stratcom_read_input():

stratcom_read_input(the_device);
printf("Button 1 is currently pressed.\n");
}

Switch LEDs on or off using stratcom_set_button_led_state():

Remember to free the device and shutdown the library at the end:

Find a small collection of complete example programs in the examples directory of the source distribution.

License

libstratcom and its documentation are licensed under terms of the MIT License/X11 license.

libstratcom uses HIDAPI as a dependency under terms of the BSD license.

See the enclosed LICENSE.txt file for details.