26 lines
401 B
C
26 lines
401 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
char key;
|
|
} ui_raw_key_t;
|
|
|
|
typedef struct {
|
|
int16_t x;
|
|
int16_t y;
|
|
} ui_raw_touch_t;
|
|
|
|
void hal_input_init(void);
|
|
bool hal_input_pop_key(ui_raw_key_t *out); /* nonblocking */
|
|
bool hal_input_pop_touch(ui_raw_touch_t *out); /* nonblocking; S3 only */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|