int check_if_user_input_should_cancel_video() { NEXT_ITERATION(); if (ac_kbhit()) { if ((ac_getch()==27) && (canabort==1)) return 1; if (canabort >= 2) return 1; // skip on any key } if (canabort == 3) { // skip on mouse click if (ac_mgetbutton()!=NONE) return 1; } return 0; }
void IAGSEngine::PollSystem () { NEXT_ITERATION(); domouse(DOMOUSE_NOCURSOR); update_polled_stuff(true); int mbut = mgetbutton(); if (mbut > NONE) pl_run_plugin_hooks (AGSE_MOUSECLICK, mbut); if (rec_kbhit()) { int kp = rec_getch(); if (kp == 0) kp = rec_getch()+300; pl_run_plugin_hooks (AGSE_KEYPRESS, kp); } }