Beispiel #1
0
void tick() {
  int current_time = glutGet(GLUT_ELAPSED_TIME);
  //cout << "tps: " << 1000.0 / (current_time - last_tick_time) << endl;
  game->tick(current_time - last_tick_time);
  last_tick_time = current_time;
  check_controller();
  glutPostRedisplay();
}
Beispiel #2
0
/* Check maple bus inputs */
void check_inputs() {
    check_controller();
}