Example #1
0
const char *M_Quit_Key (int key)
{
#ifdef QUITMENU_NOKEY
	return Default_MenuKey( &s_quit_menu, key );
#else // QUITMENU_NOKEY
	switch (key)
	{
	case K_ESCAPE:
	case 'n':
	case 'N':
		UI_PopMenu ();
		break;

	case 'Y':
	case 'y':
		cls.key_dest = key_console;
		CL_Quit_f ();
		break;

	default:
		break;
	}
	return NULL;
#endif // QUITMENU_NOKEY
}
Example #2
0
const char *M_Quit_Key (menuframework_s *self, int key)
{
	switch (key)
	{
	case K_ESCAPE:
	case K_MOUSE2:
	case 'n':
	case 'N':
		M_PopMenu ();
		break;

	case 'Y':
	case 'y':
		cls.key_dest = key_console;
		CL_Quit_f ();
		break;

	default:
		break;
	}

	return NULL;

}
Example #3
0
static void QuitYesFunc( void *unused )
{
	cls.key_dest = key_console;
	CL_Quit_f ();
}