![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <joystick.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this Joystick device. | |
| uint32_t | joystickid |
| Unique Id of this Joystick device in the Joystick device table. | |
| uint32_t | joystickstate |
| Joystick device state (eg JOYSTICK_STATE_ENABLED). | |
| joystick_device_start_proc | devicestart |
| A Device specific DeviceStart method implementing the standard Joystick device interface (Mandatory). | |
| joystick_device_stop_proc | devicestop |
| A Device specific DeviceStop method implementing the standard Joystick device interface (Mandatory). | |
| joystick_device_peek_proc | devicepeek |
| A Device specific DevicePeek method implementing a standard Joystick device interface (Or nil if the default method is suitable). | |
| joystick_device_read_proc | deviceread |
| A Device specific DeviceRead method implementing a standard Joystick device interface (Or nil if the default method is suitable). | |
| joystick_device_write_proc | devicewrite |
| A Device specific DeviceWrite method implementing a standard Joystick device interface (Or nil if the default method is suitable). | |
| joystick_device_flush_proc | deviceflush |
| A Device specific DeviceFlush method implementing a standard Joystick device interface (Or nil if the default method is suitable). | |
| joystick_device_update_proc | deviceupdate |
| A Device specific DeviceUpdate method implementing a standard Joystick device interface (Or nil if the default method is suitable). | |
| joystick_device_control_proc | devicecontrol |
| A Device specific DeviceControl method implementing a standard Joystick device interface (Or nil if the default method is suitable). | |
| joystick_device_get_properties_proc | devicegetproperties |
| A Device specific DeviceGetProperties method implementing a standard Joystick device interface (Or nil if the default method is suitable). | |
| MUTEX_HANDLE | lock |
| Device lock. | |
| joystick_event_cb | event |
| Event callback function (If assigned). | |
| void * | parameter |
| Parameter for the event callback (or nil). | |
| JOYSTICK_BUFFER | buffer |
| Joystick input buffer. | |
| JOYSTICK_PROPERTIES | properties |
| Device properties. | |
| uint32_t | receivecount |
| uint32_t | receiveerrors |
| uint32_t | bufferoverruns |
| JOYSTICK_DEVICE * | prev |
| Previous entry in Joystick device table. | |
| JOYSTICK_DEVICE * | next |
| Next entry in Joystick device table. | |
| DEVICE device |
The Device entry for this Joystick device.
| uint32_t joystickid |
Unique Id of this Joystick device in the Joystick device table.
| uint32_t joystickstate |
Joystick device state (eg JOYSTICK_STATE_ENABLED).
| joystick_device_start_proc devicestart |
A Device specific DeviceStart method implementing the standard Joystick device interface (Mandatory).
| joystick_device_stop_proc devicestop |
A Device specific DeviceStop method implementing the standard Joystick device interface (Mandatory).
| joystick_device_peek_proc devicepeek |
A Device specific DevicePeek method implementing a standard Joystick device interface (Or nil if the default method is suitable).
| joystick_device_read_proc deviceread |
A Device specific DeviceRead method implementing a standard Joystick device interface (Or nil if the default method is suitable).
| joystick_device_write_proc devicewrite |
A Device specific DeviceWrite method implementing a standard Joystick device interface (Or nil if the default method is suitable).
| joystick_device_flush_proc deviceflush |
A Device specific DeviceFlush method implementing a standard Joystick device interface (Or nil if the default method is suitable).
| joystick_device_update_proc deviceupdate |
A Device specific DeviceUpdate method implementing a standard Joystick device interface (Or nil if the default method is suitable).
| joystick_device_control_proc devicecontrol |
A Device specific DeviceControl method implementing a standard Joystick device interface (Or nil if the default method is suitable).
| joystick_device_get_properties_proc devicegetproperties |
A Device specific DeviceGetProperties method implementing a standard Joystick device interface (Or nil if the default method is suitable).
| MUTEX_HANDLE lock |
Device lock.
| joystick_event_cb event |
Event callback function (If assigned).
| void* parameter |
Parameter for the event callback (or nil).
| JOYSTICK_BUFFER buffer |
Joystick input buffer.
| JOYSTICK_PROPERTIES properties |
Device properties.
| uint32_t receivecount |
| uint32_t receiveerrors |
| uint32_t bufferoverruns |
| JOYSTICK_DEVICE* prev |
Previous entry in Joystick device table.
| JOYSTICK_DEVICE* next |
Next entry in Joystick device table.