Input types
Modules | |
class GameControllerLayout | |
Data of layouts for known controllers. | |
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 |
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__ |
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 |
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 |
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. |
struct game_key_event |
enum GAME_PORT_TYPE |