int32_t width, int32_t height,
void *data);
typedef void (*window_redraw_handler_t)(struct window *window, void *data);
-typedef void (*window_frame_handler_t)(struct window *window, uint32_t frame, uint32_t timestamp, void *data);
+
typedef void (*window_key_handler_t)(struct window *window, struct input *input,
uint32_t time, uint32_t key, uint32_t unicode,
uint32_t state, void *data);
+
typedef void (*window_keyboard_focus_handler_t)(struct window *window,
struct input *device, void *data);
void
window_set_resize_handler(struct window *window,
window_resize_handler_t handler);
-void
-window_set_frame_handler(struct window *window,
- window_frame_handler_t handler);
void
window_set_key_handler(struct window *window,
window_keyboard_focus_handler_t handler);
void
-window_set_frame_handler(struct window *window,
- window_frame_handler_t handler);
-
-void
display_set_global_handler(struct display *display,
display_global_handler_t handler);