Ultralight C API 1.3.0
Loading...
Searching...
No Matches
CAPI_GamepadEvent.h
Go to the documentation of this file.
1/******************************************************************************
2 * This file is a part of Ultralight, an ultra-portable web-browser engine. *
3 * *
4 * See <https://ultralig.ht> for licensing and more. *
5 * *
6 * (C) 2023 Ultralight, Inc. *
7 *****************************************************************************/
8#ifndef ULTRALIGHT_CAPI_GAMEPADEVENT_H
9#define ULTRALIGHT_CAPI_GAMEPADEVENT_H
10
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17/******************************************************************************
18 * Gamepad Event
19 *****************************************************************************/
20
21///
22/// Create a gamepad event, see GamepadEvent for help using this function.
23///
25
26///
27/// Destroy a gamepad event.
28///
30
31/******************************************************************************
32 * Gamepad Axis Event
33 *****************************************************************************/
34
35///
36/// Create a gamepad axis event, see GamepadAxisEvent for help using this function.
37///
38ULExport ULGamepadAxisEvent ulCreateGamepadAxisEvent(unsigned int index, unsigned int axis_index,
39 double value);
40
41///
42/// Destroy a gamepad axis event.
43///
45
46/******************************************************************************
47 * Gamepad Button Event
48 *****************************************************************************/
49
50///
51/// Create a gamepad button event, see GamepadButtonEvent for help using this function.
52///
54 unsigned int button_index, double value);
55
56///
57/// Destroy a gamepad button event.
58///
60
61#ifdef __cplusplus
62} // extern "C"
63#endif
64
65#endif // ULTRALIGHT_CAPI_GAMEPADEVENT_H
struct C_GamepadButtonEvent * ULGamepadButtonEvent
Definition CAPI_Defines.h:61
ULGamepadEventType
Definition CAPI_Defines.h:203
#define ULExport
Definition CAPI_Defines.h:27
struct C_GamepadAxisEvent * ULGamepadAxisEvent
Definition CAPI_Defines.h:60
struct C_GamepadEvent * ULGamepadEvent
Definition CAPI_Defines.h:59
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 void ulDestroyGamepadEvent(ULGamepadEvent evt)
Destroy a gamepad event.
ULExport void ulDestroyGamepadAxisEvent(ULGamepadAxisEvent evt)
Destroy a gamepad axis event.
ULExport ULGamepadEvent ulCreateGamepadEvent(unsigned int index, ULGamepadEventType type)
Create a gamepad event, see GamepadEvent for help using this function.