Zephyr API 3.6.99
|
Input event structure. More...
#include <input.h>
Data Fields | |
const struct device * | dev |
Device generating the event or NULL. | |
uint8_t | sync |
Sync flag. | |
uint8_t | type |
Event type (see INPUT_EV_CODES). | |
uint16_t | code |
Event code (see INPUT_KEY_CODES, INPUT_BTN_CODES, INPUT_ABS_CODES, INPUT_REL_CODES, INPUT_MSC_CODES). | |
int32_t | value |
Event value. | |
Input event structure.
This structure represents a single input event, for example a key or button press for a single button, or an absolute or relative coordinate for a single axis.
uint16_t input_event::code |
Event code (see INPUT_KEY_CODES, INPUT_BTN_CODES, INPUT_ABS_CODES, INPUT_REL_CODES, INPUT_MSC_CODES).
const struct device* input_event::dev |
Device generating the event or NULL.
uint8_t input_event::sync |
Sync flag.
uint8_t input_event::type |
Event type (see INPUT_EV_CODES).
int32_t input_event::value |
Event value.