mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 06:31:19 +02:00
- bugfix for backspace on mac
This commit is contained in:
@@ -804,6 +804,9 @@ bool isKeyPressed(SDLKey compareKey, SDL_KeyboardEvent input,bool modifiersAllow
|
|||||||
else if(compareKey == SDLK_KP_MULTIPLY) {
|
else if(compareKey == SDLK_KP_MULTIPLY) {
|
||||||
result = (c == SDLK_ASTERISK);
|
result = (c == SDLK_ASTERISK);
|
||||||
}
|
}
|
||||||
|
else if(compareKey == SDLK_BACKSPACE) {
|
||||||
|
result = (c == SDLK_DELETE);
|
||||||
|
}
|
||||||
else if( compareKey >= SDLK_0 && compareKey <= SDLK_9) {
|
else if( compareKey >= SDLK_0 && compareKey <= SDLK_9) {
|
||||||
switch(compareKey) {
|
switch(compareKey) {
|
||||||
case SDLK_0:
|
case SDLK_0:
|
||||||
|
Reference in New Issue
Block a user