Ultralight C API 1.4.0
|
Gamepad event interface.
#include <Ultralight/CAPI/CAPI_GamepadEvent.h>
This file defines the C API for gamepad events.
Functions | |
ULExport ULGamepadEvent | ulCreateGamepadEvent (unsigned int index, ULGamepadEventType type) |
Create a gamepad event, see GamepadEvent for help using this function. | |
ULExport void | ulDestroyGamepadEvent (ULGamepadEvent evt) |
Destroy a gamepad event. | |
ULExport ULGamepadAxisEvent | ulCreateGamepadAxisEvent (unsigned int index, unsigned int axis_index, double value) |
Create a gamepad axis event, see GamepadAxisEvent for help using this function. | |
ULExport void | ulDestroyGamepadAxisEvent (ULGamepadAxisEvent evt) |
Destroy a gamepad axis event. | |
ULExport ULGamepadButtonEvent | ulCreateGamepadButtonEvent (unsigned int index, unsigned int button_index, double value) |
Create a gamepad button event, see GamepadButtonEvent for help using this function. | |
ULExport void | ulDestroyGamepadButtonEvent (ULGamepadButtonEvent evt) |
Destroy a gamepad button event. | |
ULExport ULGamepadAxisEvent ulCreateGamepadAxisEvent | ( | unsigned int | index, |
unsigned int | axis_index, | ||
double | value ) |
Create a gamepad axis event, see GamepadAxisEvent for help using this function.
ULExport ULGamepadButtonEvent ulCreateGamepadButtonEvent | ( | unsigned int | index, |
unsigned int | button_index, | ||
double | value ) |
Create a gamepad button event, see GamepadButtonEvent for help using this function.
ULExport ULGamepadEvent ulCreateGamepadEvent | ( | unsigned int | index, |
ULGamepadEventType | type ) |
Create a gamepad event, see GamepadEvent for help using this function.
ULExport void ulDestroyGamepadAxisEvent | ( | ULGamepadAxisEvent | evt | ) |
Destroy a gamepad axis event.
ULExport void ulDestroyGamepadButtonEvent | ( | ULGamepadButtonEvent | evt | ) |
Destroy a gamepad button event.
ULExport void ulDestroyGamepadEvent | ( | ULGamepadEvent | evt | ) |
Destroy a gamepad event.