components/prboom/st_stuff.c
// Respond to keyboard input events,
//  intercept cheats.
Respond to keyboard input events,
intercept cheats.
Respond to keyboard input events intercept cheats .
boolean ST_Responder(event_t *ev)
{
  if (ev->type == ev_keyup && (ev->data1 & 0xffff0000) == AM_MSGHEADER)
    {
      switch(ev->data1)
        {
        case AM_MSGENTERED:
          st_gamestate = AutomapState;
          st_firsttime = true;
          break;
        case AM_MSGEXITED:
          st_gamestate = FirstPersonState;
          break;
        }
    }
  else  
    if (ev->type == ev_keydown)       
      return M_FindCheats(ev->data1); 
  return false;
}
boolean ST_Responder ( event_t * ev ) { if ( ev -> type == ev_keyup && ( ev -> data1 & 0xffff0000 ) == AM_MSGHEADER ) { switch ( ev -> data1 ) { case AM_MSGENTERED : st_gamestate = AutomapState ; st_firsttime = true ; break ; case AM_MSGEXITED : st_gamestate = FirstPersonState ; break ; } } else if ( ev -> type == ev_keydown ) return M_FindCheats ( ev -> data1 ) ; return false ; }
Respond to keyboard input events,
intercept cheats.
Respond to keyboard input events intercept cheats .
// Filter automap on/off. // if a user keypress... // Try cheat responder in m_cheat.c // killough 4/17/98, 5/2/98