#include <GP.h> /* or */ #include <input/GP_Event.h> typedef struct GP_Event { /* event */ uint16_t type; uint32_t code; union GP_EventValue val; /* input device id */ uint32_t dev_id; /* event timestamp */ struct timeval time; /* * Cursor position, position on screen accumulated * from all pointer devices */ uint32_t cursor_x; uint32_t cursor_y; /* * Bitmap of pressed keys including mouse buttons * accumulated for all input devices. */ uint8_t keys_pressed[GP_EVENT_KEYMAP_BYTES]; } GP_Event;