Skip to content

Commit

Permalink
[MP] Merged some ioq3 bind changes to MP along with togglemenu support.
Browse files Browse the repository at this point in the history
Console Command intercept should still work.
  • Loading branch information
ensiform committed Feb 1, 2014
1 parent 81320fc commit b276c56
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 138 deletions.
11 changes: 11 additions & 0 deletions codemp/client/cl_console.cpp
Expand Up @@ -41,6 +41,16 @@ void Con_ToggleConsole_f (void) {
Key_SetCatcher( Key_GetCatcher( ) ^ KEYCATCH_CONSOLE );
}

/*
===================
Con_ToggleMenu_f
===================
*/
void Con_ToggleMenu_f( void ) {
CL_KeyEvent( A_ESCAPE, qtrue, Sys_Milliseconds() );
CL_KeyEvent( A_ESCAPE, qfalse, Sys_Milliseconds() );
}

/*
================
Con_MessageMode_f
Expand Down Expand Up @@ -338,6 +348,7 @@ void Con_Init (void) {
}

Cmd_AddCommand( "toggleconsole", Con_ToggleConsole_f );
Cmd_AddCommand( "togglemenu", Con_ToggleMenu_f );
Cmd_AddCommand( "messagemode", Con_MessageMode_f );
Cmd_AddCommand( "messagemode2", Con_MessageMode2_f );
Cmd_AddCommand( "messagemode3", Con_MessageMode3_f );
Expand Down

1 comment on commit b276c56

@Yberion
Copy link
Contributor

@Yberion Yberion commented on b276c56 Feb 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah this is nice.

Please sign in to comment.