|
libx52 0.3.3
Saitek X52/X52Pro drivers for Linux/Unix
|
Functions, structures and enumerations for the Saitek X52 IO driver library. More...
Go to the source code of this file.
Data Structures | |
| struct | libx52io_report |
| X52 HID Report. More... | |
Typedefs | |
| typedef struct libx52io_context | libx52io_context |
| Device context structure used by libx52io. | |
Functions | |
| LIBX52IO_API int | libx52io_init (libx52io_context **ctx) |
| Initialize the IO library. | |
| LIBX52IO_API void | libx52io_exit (libx52io_context *ctx) |
| Exit the library and free up any resources used. | |
| LIBX52IO_API int | libx52io_open (libx52io_context *ctx) |
| Open a connection to a supported joystick. | |
| LIBX52IO_API int | libx52io_close (libx52io_context *ctx) |
| Close an existing connection to a supported joystick. | |
| LIBX52IO_API int | libx52io_read_timeout (libx52io_context *ctx, libx52io_report *report, int timeout) |
| Read and parse a HID report. | |
| LIBX52IO_API int | libx52io_read (libx52io_context *ctx, libx52io_report *report) |
| Read and parse a HID report. | |
| LIBX52IO_API int | libx52io_get_axis_range (libx52io_context *ctx, libx52io_axis axis, int32_t *min, int32_t *max) |
| Retrieve the range of an axis. | |
| LIBX52IO_API const char * | libx52io_strerror (libx52io_error_code code) |
| Get the string representation of an error code. | |
| LIBX52IO_API const char * | libx52io_axis_to_str (libx52io_axis axis) |
| Get the string representation of an axis. | |
| LIBX52IO_API const char * | libx52io_button_to_str (libx52io_button button) |
| Get the string representation of a button. | |
| LIBX52IO_API int | libx52io_axis_from_str (const char *str, libx52io_axis *axis) |
| Parse the string representation of an axis. | |
| LIBX52IO_API int | libx52io_button_from_str (const char *str, libx52io_button *button) |
| Parse the string representation of a button. | |
| LIBX52IO_API int | libx52io_axis_from_str_nocase (const char *str, libx52io_axis *axis) |
| Parse an axis name with ASCII case-insensitive matching. | |
| LIBX52IO_API int | libx52io_button_from_str_nocase (const char *str, libx52io_button *button) |
| Parse a button name with ASCII case-insensitive matching. | |
| LIBX52IO_API uint16_t | libx52io_get_vendor_id (libx52io_context *ctx) |
| Get the vendor ID of the connected X52 device. | |
| LIBX52IO_API uint16_t | libx52io_get_product_id (libx52io_context *ctx) |
| Get the product ID of the connected X52 device. | |
| LIBX52IO_API uint16_t | libx52io_get_device_version (libx52io_context *ctx) |
| Get the device version of the connected X52 device. | |
| LIBX52IO_API const char * | libx52io_get_manufacturer_string (libx52io_context *ctx) |
| Get the manufacturer string of the connected X52 device. | |
| LIBX52IO_API const char * | libx52io_get_product_string (libx52io_context *ctx) |
| Get the product string of the connected X52 device. | |
| LIBX52IO_API const char * | libx52io_get_serial_number_string (libx52io_context *ctx) |
| Get the serial number of the connected X52 device. | |
Functions, structures and enumerations for the Saitek X52 IO driver library.
This file contains the type, enum and function prototypes for the Saitek X52 IO driver library. These functions allow an application to connect to a supported X52/X52Pro joystick and read the state of the buttons and axes.