|
#ifndef _INPUTS_H
|
|
#define _INPUTS_H
|
|
|
|
#include "keycodes.h"
|
|
|
|
typedef struct input_event_t {
|
|
uint32_t type;
|
|
int key;
|
|
} input_event_t;
|
|
|
|
int poll_event(input_event_t *event);
|
|
|
|
typedef struct inputs_t {
|
|
bool keys[MAX_KEYCODES];
|
|
} inputs_t;
|
|
|
|
#endif // _INPUTS_H
|