Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
input_event Struct Reference

Input event structure. More...

#include <input.h>

Data Fields

const struct devicedev
 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.
 

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: