Why do you want to do this?

-Ryan

Oliver wrote:
--
[ Picked text/plain from multipart/alternative ]
We'd like to limit user's ability to access the main menu (what you see when
HL2 starts) from in-game.  By default, this menu is accessed in-game through
the escape key.  Our goal is to unbind the escape key so that when it is
pressed, the main menu does not appear in-game.

We've tried:

-Removing the escape binding from config.cfg
-Rebinding escape to something else in-game
-Manually disabling escape with:

int CInput::KeyEvent( int down, int keynum, const char *pszCurrentBinding )
{
    //Disable escape
    if(keynum == K_ESCAPE) return 0;

    if ( g_pClientMode )
        return g_pClientMode->KeyInput(down, keynum, pszCurrentBinding);

    return 1;
}

None of the 3 attempts were successful.  In the last attempt, KeyEvent(...)
returned 0, but the main menu was still accessed.  Any ideas?

Thanks,
Oliver
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders




_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to