58 lines
1,007 B
C
58 lines
1,007 B
C
/**
|
|
* @file libinput_xkb.h
|
|
*
|
|
*/
|
|
|
|
#ifndef LVGL_LIBINPUT_XKB_H
|
|
#define LVGL_LIBINPUT_XKB_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*********************
|
|
* INCLUDES
|
|
*********************/
|
|
// #ifndef LV_DRV_NO_CONF
|
|
// #ifdef LV_CONF_INCLUDE_SIMPLE
|
|
#include "lv_drv_conf.h"
|
|
// #else
|
|
// #include "../../lv_drv_conf.h"
|
|
// #endif
|
|
// #endif
|
|
|
|
#if USE_LIBINPUT || USE_BSD_LIBINPUT
|
|
|
|
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
|
|
#include "lvgl.h"
|
|
#else
|
|
#include "lvgl/lvgl.h"
|
|
#endif
|
|
|
|
/*********************
|
|
* DEFINES
|
|
*********************/
|
|
|
|
/**********************
|
|
* TYPEDEFS
|
|
**********************/
|
|
|
|
/**********************
|
|
* GLOBAL PROTOTYPES
|
|
**********************/
|
|
|
|
bool libinput_xkb_init(void);
|
|
void *libinput_xkb_create_state(void);
|
|
uint32_t libinput_xkb_process_key(uint32_t code, bool down, void *state);
|
|
|
|
/**********************
|
|
* MACROS
|
|
**********************/
|
|
|
|
#endif /* USE_LIBINPUT || USE_BSD_LIBINPUT */
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* LVGL_LIBINPUT_XKB_H */
|