libx52
0.3.2
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. More... | |
Functions | |
int | libx52io_init (libx52io_context **ctx) |
Initialize the IO library. More... | |
void | libx52io_exit (libx52io_context *ctx) |
Exit the library and free up any resources used. More... | |
int | libx52io_open (libx52io_context *ctx) |
Open a connection to a supported joystick. More... | |
int | libx52io_close (libx52io_context *ctx) |
Close an existing connection to a supported joystick. More... | |
int | libx52io_read_timeout (libx52io_context *ctx, libx52io_report *report, int timeout) |
Read and parse a HID report. More... | |
int | libx52io_read (libx52io_context *ctx, libx52io_report *report) |
Read and parse a HID report. More... | |
int | libx52io_get_axis_range (libx52io_context *ctx, libx52io_axis axis, int32_t *min, int32_t *max) |
Retrieve the range of an axis. More... | |
const char * | libx52io_strerror (libx52io_error_code code) |
Get the string representation of an error code. More... | |
const char * | libx52io_axis_to_str (libx52io_axis axis) |
Get the string representation of an axis. More... | |
const char * | libx52io_button_to_str (libx52io_button button) |
Get the string representation of a button. More... | |
uint16_t | libx52io_get_vendor_id (libx52io_context *ctx) |
Get the vendor ID of the connected X52 device. More... | |
uint16_t | libx52io_get_product_id (libx52io_context *ctx) |
Get the product ID of the connected X52 device. More... | |
uint16_t | libx52io_get_device_version (libx52io_context *ctx) |
Get the device version of the connected X52 device. More... | |
const char * | libx52io_get_manufacturer_string (libx52io_context *ctx) |
Get the manufacturer string of the connected X52 device. More... | |
const char * | libx52io_get_product_string (libx52io_context *ctx) |
Get the product string of the connected X52 device. More... | |
const char * | libx52io_get_serial_number_string (libx52io_context *ctx) |
Get the serial number of the connected X52 device. More... | |
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.