Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

Input types

Modules

 class GameControllerLayout
 Data of layouts for known controllers.
 

Class Documentation

◆ game_abs_pointer_event

struct game_abs_pointer_event
Class Members
bool pressed
float x
float y

◆ game_accelerometer_event

struct game_accelerometer_event
Class Members
float x
float y
float z

◆ game_analog_button_event

struct game_analog_button_event
Class Members
float magnitude

◆ game_analog_stick_event

struct game_analog_stick_event
Class Members
float x
float y

◆ game_axis_event

struct game_axis_event
Class Members
float position

◆ game_digital_button_event

struct game_digital_button_event
Class Members
bool pressed

◆ game_input_device

struct game_input_device

Device that can provide input.

Class Members
const char * controller_id ID used in the Kodi controller API.
const char * port_address
struct game_input_port * available_ports
unsigned int port_count

◆ game_input_event

struct game_input_event
Class Members
GAME_INPUT_EVENT_SOURCE type
const char * controller_id
GAME_PORT_TYPE port_type
const char * port_address
const char * feature_name
union game_input_event __unnamed__

◆ game_input_event.__unnamed7__

union game_input_event.__unnamed7__
Class Members
struct game_digital_button_event digital_button
struct game_analog_button_event analog_button
struct game_axis_event axis
struct game_analog_stick_event analog_stick
struct game_accelerometer_event accelerometer
struct game_key_event key
struct game_rel_pointer_event rel_pointer
struct game_abs_pointer_event abs_pointer
struct game_motor_event motor

◆ game_input_port

struct game_input_port

Port that can provide input.

Ports can accept multiple devices and devices can have multiple ports, so the topology of possible configurations is a tree structure of alternating port and device nodes.

Class Members
GAME_PORT_TYPE type
const char * port_id Required for GAME_PORT_CONTROLLER type.
game_input_device * accepted_devices
unsigned int device_count

◆ game_input_topology

struct game_input_topology

The input topology is the possible ways to connect input devices.

This represents the logical topology, which is the possible connections that the game client's logic can handle. It is strictly a subset of the physical topology. Loops are not allowed.

Class Members
game_input_port * ports The list of ports on the virtual game console.
unsigned int port_count The number of ports.
int player_limit A limit on the number of input-providing devices, or -1 for no limit.

◆ game_key_event

struct game_key_event
Class Members
bool pressed
uint32_t unicode If the keypress generates a printing character.

The unicode value contains the character generated. If the key is a non-printing character, e.g. a function or arrow key, the unicode value is zero.

GAME_KEY_MOD modifiers

◆ game_motor_event

struct game_motor_event
Class Members
float magnitude

◆ game_rel_pointer_event

struct game_rel_pointer_event
Class Members
int x
int y

Enumeration Type Documentation

◆ GAME_PORT_TYPE

Type of port on the virtual game console.

Enumerator
GAME_PORT_UNKNOWN 

Game port unknown.

GAME_PORT_KEYBOARD 

Game port Keyboard.

GAME_PORT_MOUSE 

Game port mouse.

GAME_PORT_CONTROLLER 

Game port controller.