anbox-platform-sdk  1.23.0
Anbox Platform SDK API documentation
AnboxInputEvent Struct Reference

AnboxInputEvent is similar to the input_event that is defined in the Linux kernel API. The three member variables type, code and value have the same meaning as defined in the Linux kernel API. Please see https://www.kernel.org/doc/Documentation/input/input.txt for further information. More...

#include <types.h>

+ Collaboration diagram for AnboxInputEvent:

Public Attributes

AnboxInputDeviceType device_type
 
int32_t device_id
 
uint16_t type
 
uint16_t code
 
int32_t value
 

Detailed Description

AnboxInputEvent is similar to the input_event that is defined in the Linux kernel API. The three member variables type, code and value have the same meaning as defined in the Linux kernel API. Please see https://www.kernel.org/doc/Documentation/input/input.txt for further information.

Definition at line 1292 of file types.h.

Member Data Documentation

◆ code

uint16_t AnboxInputEvent::code

The code of the input event. E.g. KEY_ENTER when you press the ENTER key.

Definition at line 1301 of file types.h.

◆ device_id

int32_t AnboxInputEvent::device_id

Id identifying a device of a given type

Definition at line 1296 of file types.h.

◆ device_type

AnboxInputDeviceType AnboxInputEvent::device_type

Type of the device the input event belongs to.

Definition at line 1294 of file types.h.

◆ type

uint16_t AnboxInputEvent::type

The type of the input event. E.g. EV_KEY stands for a keyboard event. See complete list in /usr/include/linux/input-event-codes.h

Definition at line 1299 of file types.h.

◆ value

int32_t AnboxInputEvent::value

The value of the input event. E.g. 0 when a keyboard key is released, 1 stands for keyboard key is pressed.

Definition at line 1304 of file types.h.


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