void ClearAllStates (void) { int i; // send an up event for each key, to make sure the server clears them all for (i = 0; i < sizeof(keydown) / sizeof(*keydown); i++) { if (keydown[i]) Key_Event (i, false); } Key_ClearStates (); IN_ClearStates (); }
/* ================ ClearAllStates ================ */ static void ClearAllStates (void) { int i; // send an up event for each key, to make sure the server clears them all for (i = 0; i < 256; i++) { Key_Event (i, false); } Key_ClearStates (); IN_ClearStates (); }
/* ================ ClearAllStates ================ */ void ClearAllStates (void) { extern void IN_ClearStates (void); extern qbool keydown[256]; int i; // send an up event for each key, to make sure the server clears them all for (i=0 ; i<256 ; i++) { if (keydown[i]) Key_Event (i, false); } Key_ClearStates (); IN_ClearStates (); }
/* ================ ClearAllStates ================ */ static void ClearAllStates (void) { Key_ClearStates (); IN_ClearStates (); }