mirror of
https://github.com/captain-amygdala/pistorm.git
synced 2026-01-27 04:12:26 +00:00
this change uses an ioctl to disconnect the keyboard event device from the input layer, meaning input no longer affects the pi and will entirely be consumed by the pistorm emulator process.
16 lines
428 B
C
16 lines
428 B
C
#include <stdint.h>
|
|
|
|
enum keypress_type {
|
|
KEYPRESS_RELEASE,
|
|
KEYPRESS_PRESS,
|
|
KEYPRESS_REPEAT,
|
|
};
|
|
|
|
int get_mouse_status(uint8_t *x, uint8_t *y, uint8_t *b, uint8_t *e);
|
|
int get_key_char(char *c, char *code, char *event_type);
|
|
int queue_keypress(uint8_t keycode, uint8_t event_type, uint8_t platform);
|
|
int get_num_kb_queued();
|
|
void pop_queued_key(uint8_t *c, uint8_t *t);
|
|
int grab_device(int fd);
|
|
int release_device(int fd);
|