8 extern SDL_Event sdl_event;
15 void destroy_keyboard()
24 void process_keyboard_event()
26 int key = sdl_event.key.keysym.sym;
28 Window *focused_win = wm->get_focused_window();
30 KeyboardFuncType keyb_callback = focused_win->get_keyboard_callback();
32 bool pressed = sdl_event.key.state == SDL_PRESSED;
33 keyb_callback(focused_win, key, pressed);