diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-08-25 21:15:25 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-08-25 21:15:25 +0000 |
commit | fdcc20799fa3e59ac39466e980d38bee7794415c (patch) | |
tree | b27ada1544938b5fadcda890879555ad7dcc93d3 /code/qcommon | |
parent | c13e838e2aa62268869ffba395ae1388c87806b9 (diff) | |
download | ioquake3-aero-fdcc20799fa3e59ac39466e980d38bee7794415c.tar.gz ioquake3-aero-fdcc20799fa3e59ac39466e980d38bee7794415c.zip |
* Handle dead keys more gracefully by taking a "best guess" rather than ignoring
completely
* When activating or deactivating the mouse flush any pending motion events;
this should stop the view moving unpredictably in these circumstances
* Add keyname completion to "unbind"
git-svn-id: svn://svn.icculus.org/quake3/trunk@1459 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r-- | code/qcommon/common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/code/qcommon/common.c b/code/qcommon/common.c index b35d848..88dab5e 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -3333,6 +3333,14 @@ static void Field_CompleteCommand( char *cmd, Field_CompleteCommand( p, qtrue, qtrue ); } } + else if( !Q_stricmp( baseCmd, "unbind" ) && completionArgument == 2 ) + { + // Skip "unbind " + p = Com_SkipTokens( cmd, 1, " " ); + + if( p > cmd ) + Field_CompleteKeyname( ); + } #endif } } |