Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

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...
 
};  
 

Detailed Description

An input event.

Member Data Documentation

◆ [union]

union { ... } game_input_event

◆ abs_pointer

struct game_abs_pointer_event game_input_event::abs_pointer

Absolute pointer event.

◆ accelerometer

struct game_accelerometer_event game_input_event::accelerometer

Accelerometer event.

◆ analog_button

struct game_analog_button_event game_input_event::analog_button

Analog button event.

◆ analog_stick

struct game_analog_stick_event game_input_event::analog_stick

Analog stick event.

◆ axis

struct game_axis_event game_input_event::axis

Axis event.

◆ controller_id

const char* game_input_event::controller_id

The ID of the controller that generated the event.

◆ digital_button

struct game_digital_button_event game_input_event::digital_button

Digital button event.

◆ feature_name

const char* game_input_event::feature_name

The name of the feature that generated the event.

◆ key

struct game_key_event game_input_event::key

Key event.

◆ motor

struct game_motor_event game_input_event::motor

Motor vibration event.

◆ port_address

const char* game_input_event::port_address

The address of the port that the controller is connected to.

◆ port_type

GAME_PORT_TYPE game_input_event::port_type

The type of port that the controller is connected to.

◆ rel_pointer

struct game_rel_pointer_event game_input_event::rel_pointer

Relative pointer event.

◆ type

GAME_INPUT_EVENT_SOURCE game_input_event::type

The type of input event.


The documentation for this struct was generated from the following file: