16 lines
277 B
C
16 lines
277 B
C
#ifndef INPUT_H
|
|
#define INPUT_H
|
|
|
|
typedef void (*input_callback_t)(int key);
|
|
|
|
int input_init();
|
|
void input_cleanup();
|
|
|
|
void input_on_press(input_callback_t cb);
|
|
void input_on_release(input_callback_t cb);
|
|
void input_on_repeat(input_callback_t cb);
|
|
|
|
void input_handle();
|
|
|
|
#endif
|