Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
An input event. More...
#include <game.h>
Public Attributes | ||
GAME_INPUT_EVENT_SOURCE | type | |
The type of input event. | ||
const char * | controller_id | |
The ID of the controller that generated the event. | ||
GAME_PORT_TYPE | port_type | |
The type of port that the controller is connected to. | ||
const char * | port_address | |
The address of the port that the controller is connected to. | ||
const char * | feature_name | |
The name of the feature that generated the event. | ||
union { | ||
struct game_digital_button_event digital_button | ||
Digital button event. More... | ||
struct game_analog_button_event analog_button | ||
Analog button event. More... | ||
struct game_axis_event axis | ||
Axis event. More... | ||
struct game_analog_stick_event analog_stick | ||
Analog stick event. More... | ||
struct game_accelerometer_event accelerometer | ||
Accelerometer event. More... | ||
struct game_key_event key | ||
Key event. More... | ||
struct game_rel_pointer_event rel_pointer | ||
Relative pointer event. More... | ||
struct game_abs_pointer_event abs_pointer | ||
Absolute pointer event. More... | ||
struct game_motor_event motor | ||
Motor vibration event. More... | ||
}; | ||
An input event.
union { ... } game_input_event |
struct game_abs_pointer_event game_input_event::abs_pointer |
Absolute pointer event.
struct game_accelerometer_event game_input_event::accelerometer |
Accelerometer event.
struct game_analog_button_event game_input_event::analog_button |
Analog button event.
struct game_analog_stick_event game_input_event::analog_stick |
Analog stick event.
struct game_axis_event game_input_event::axis |
Axis event.
const char* game_input_event::controller_id |
The ID of the controller that generated the event.
struct game_digital_button_event game_input_event::digital_button |
Digital button event.
const char* game_input_event::feature_name |
The name of the feature that generated the event.
struct game_key_event game_input_event::key |
Key event.
struct game_motor_event game_input_event::motor |
Motor vibration event.
const char* game_input_event::port_address |
The address of the port that the controller is connected to.
GAME_PORT_TYPE game_input_event::port_type |
The type of port that the controller is connected to.
struct game_rel_pointer_event game_input_event::rel_pointer |
Relative pointer event.
GAME_INPUT_EVENT_SOURCE game_input_event::type |
The type of input event.