Example #1
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);
  }

}
void mnewcursor(char cursno) {
  domouse(2); currentcursor=cursno; domouse(1);
  }