- bugfix for backspace on mac

This commit is contained in:
Mark Vejvoda 2012-11-09 21:05:43 +00:00
parent e01ccca6a3
commit 8793b3400b
1 changed files with 3 additions and 0 deletions

View File

@ -804,6 +804,9 @@ bool isKeyPressed(SDLKey compareKey, SDL_KeyboardEvent input,bool modifiersAllow
else if(compareKey == SDLK_KP_MULTIPLY) {
result = (c == SDLK_ASTERISK);
}
else if(compareKey == SDLK_BACKSPACE) {
result = (c == SDLK_DELETE);
}
else if( compareKey >= SDLK_0 && compareKey <= SDLK_9) {
switch(compareKey) {
case SDLK_0: