| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
Input event structure. More...
#include <input.h>
Data Fields | |
| const struct device * | dev | 
| uint8_t | sync | 
| uint8_t | type | 
| uint16_t | code | 
| int32_t | 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.