Mercurial > sdl-ios-xcode
diff src/video/ataricommon/SDL_atarievents.c @ 2043:adf732f1f016
Formatting update
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 24 Sep 2006 15:56:55 +0000 |
parents | 59e1a50193aa |
children | 99210400e8b9 |
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_atarievents.c Sun Sep 24 15:56:36 2006 +0000 +++ b/src/video/ataricommon/SDL_atarievents.c Sun Sep 24 15:56:55 2006 +0000 @@ -134,12 +134,12 @@ keytab_normal = key_tables->unshift; /* Initialize keymap */ - for ( i=0; i<ATARIBIOS_MAXKEYS; i++ ) + for (i = 0; i < ATARIBIOS_MAXKEYS; i++) keymap[i] = SDLK_UNKNOWN; /* Functions keys */ - for ( i = 0; i<10; i++ ) - keymap[SCANCODE_F1 + i] = SDLK_F1+i; + for (i = 0; i < 10; i++) + keymap[SCANCODE_F1 + i] = SDLK_F1 + i; /* Cursor keypad */ keymap[SCANCODE_HELP] = SDLK_HELP; @@ -208,8 +208,7 @@ }; SDL_keysym * -SDL_Atari_TranslateKey(int scancode, SDL_keysym *keysym, - SDL_bool pressed) +SDL_Atari_TranslateKey(int scancode, SDL_keysym * keysym, SDL_bool pressed) { int asciicode = 0; @@ -220,14 +219,14 @@ keysym->unicode = 0; if (keysym->sym == SDLK_UNKNOWN) { - keysym->sym = asciicode = keytab_normal[scancode]; + keysym->sym = asciicode = keytab_normal[scancode]; } if (SDL_TranslateUNICODE && pressed) { keysym->unicode = SDL_AtariToUnicodeTable[asciicode]; } - return(keysym); + return (keysym); } /* vi: set ts=4 sw=4 expandtab: */