mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-31 04:50:42 +00:00
* Prevent ~ from generating a character
* Fix backspace on OS X (I hope)
This commit is contained in:
parent
953200cafc
commit
c1befbda75
1 changed files with 6 additions and 0 deletions
|
@ -234,12 +234,18 @@ static const char *IN_TranslateSDLToQ3Key( SDL_keysym *keysym,
|
||||||
*key = CTRL('h');
|
*key = CTRL('h');
|
||||||
*buf = *key;
|
*buf = *key;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
*buf = ch;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: *buf = ch; break;
|
default: *buf = ch; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Never allow a '~' SE_CHAR event to be generated
|
||||||
|
if( *key == '~' )
|
||||||
|
*buf = '\0';
|
||||||
|
|
||||||
if( in_keyboardDebug->integer )
|
if( in_keyboardDebug->integer )
|
||||||
IN_PrintKey( keysym, *key, down );
|
IN_PrintKey( keysym, *key, down );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue