void spawn_discard_drops(int pl) { int i = 0; if (pl==2) { i = 1; if (socket_fd > -1) { spawn_tm[1] = 0; return; } } spawn_tm[i] = gettm(0); #ifdef ALLEGRO kb_reset_drop(pl); #endif #ifdef JOYSTICK if (!num_joyst) return; i = !js_pressed(0); if (pl==2 && inputdevs_player[i+1] != 2) { if (i || inputdevs_player[2] != 2) return; i = 1; } if (js_pressed(i)) js_reset_drop(i); #endif }
int getautorepeat(int flags) { int keypress = 0; int i = 0; while (i < num_joyst) { if (js_pressed(i)) { keypress = js_getautorepeat(i, flags); break; } i++; } i++; if (keypress && inputdevs_player[i] && !(flags & SINGLE_PL)) keypress |= inputdevs_player[i]==1 ? PLAYER_1 : PLAYER_2; return keypress; }