Zephyr API Documentation  3.4.0
A Scalable Open Source RTOS
3.4.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
input_event Struct Reference

Input event structure. More...

#include <input.h>

Data Fields

const struct devicedev
 
uint8_t sync
 
uint8_t type
 
uint16_t code
 
int32_t value
 

Detailed Description

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.

Field Documentation

◆ code

◆ dev

const struct device* input_event::dev

Device generating the event or NULL.

◆ sync

uint8_t input_event::sync

Sync flag.

◆ type

uint8_t input_event::type

Event type (see INPUT_EV_CODES).

◆ value

int32_t input_event::value

Event value.


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