46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/**
|
|
* Auto-generated with unsqu33kr
|
|
**/
|
|
|
|
#ifndef SQ2LV_LAYOUTS_H
|
|
#define SQ2LV_LAYOUTS_H
|
|
|
|
#include "../lvgl/lvgl.h"
|
|
|
|
/* Layout IDs, values can be used as indexes into the sq2lv_layouts array */
|
|
typedef enum {
|
|
SQ2LV_LAYOUT_US = 0
|
|
} sq2lv_layout_id_t;
|
|
|
|
/* Layout type */
|
|
typedef struct {
|
|
/* Layers array */
|
|
const sq2lv_layer_t * const layers;
|
|
/* Total number of layers */
|
|
const int num_layers;
|
|
} sq2lv_layout_t;
|
|
|
|
/* Layer type */
|
|
typedef struct {
|
|
/* Key caps */
|
|
const char ** const keycaps;
|
|
/* Button matrix attributes */
|
|
const lv_btnmatrix_ctrl_t * const attributes;
|
|
/* Total number of scancodes */
|
|
const int const num_scancodes;
|
|
/* Flat array of scancodes */
|
|
const int * const scancodes;
|
|
/* Start index in scancodes array for key cap */
|
|
const int * const scancode_idxs;
|
|
/* Number of scancodes for key cap */
|
|
const int * const scancode_nums;
|
|
} sq2lv_layer_t;
|
|
|
|
/* Layouts */
|
|
extern const sq2lv_layout_t sq2lv_layouts[];
|
|
extern const int sq2lv_num_layouts;
|
|
|
|
/* Layout names (suitable for use in lv_dropdown_t */
|
|
extern const char * const sq2lv_layout_names;
|
|
|
|
#endif /* SQ2LV_LAYOUTS_H */
|