libx52
0.3.2
Saitek X52/X52Pro drivers for Linux/Unix
|
Typedefs | |
typedef struct libx52_device | libx52_device |
Device context structure used by libx52. More... | |
Functions | |
int | libx52_init (libx52_device **dev) |
Initialize the X52 library. More... | |
void | libx52_exit (libx52_device *dev) |
Exit the library and free up any resources used. More... | |
These functions are used at application entry and exit.
typedef struct libx52_device libx52_device |
Device context structure used by libx52.
All libx52 API functions require the application to pass in a pointer to a valid device context structure. A pointer can be obtained by calling libx52_init
void libx52_exit | ( | libx52_device * | dev | ) |
Exit the library and free up any resources used.
This function releases any resources allocated by libx52_init and terminates the library. Using the freed device now is invalid and can cause errors.
[in] | dev | Pointer to the device context |
int libx52_init | ( | libx52_device ** | dev | ) |
Initialize the X52 library.
This function initializes the libx52 library, sets up any internal data structures to access the joystick, and returns a libx52_device pointer in the output parameter. All calls to libx52 use the returned pointer to control the device.
[out] | dev | Pointer to a libx52_device *. This function will allocate a device context and return the pointer to the device context in this variable. |