SIGNAL_HANDLER int win_video_set_keypress(const char* widgetname, void *usrdata) { GUI_Event *event = NULL; if(NULL == usrdata) return EVENT_TRANSFER_STOP; event = (GUI_Event *)usrdata; switch(event->key.sym) { case KEY_EXIT: case KEY_RECALL: case KEY_MENU: key_exit(); GUI_EndDialog("win_video_set"); return EVENT_TRANSFER_STOP; case APPK_LEFT: case APPK_RIGHT: key_lr(event->key.sym); break; case APPK_OK: key_ok(); break; default: break; } return EVENT_TRANSFER_STOP; }
void callback_key(GLFWwindow *window, int key, int scancode, int action, int mods) { (void)scancode; (void)mods; (void)action; (void)key; (void)window; key_exit(window, key, action); }