Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemevents.c @ 2043:adf732f1f016
Formatting update
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 24 Sep 2006 15:56:55 +0000 |
parents | d774e9d7c2a8 |
children | 6fe43f7efd94 |
comparison
equal
deleted
inserted
replaced
2042:3908e1f808e1 | 2043:adf732f1f016 |
---|---|
145 SDL_Atari_TranslateKey(i, &keysym, SDL_TRUE)); | 145 SDL_Atari_TranslateKey(i, &keysym, SDL_TRUE)); |
146 | 146 |
147 /* Key unpressed ? */ | 147 /* Key unpressed ? */ |
148 if (gem_previouskeyboard[i] && !gem_currentkeyboard[i]) | 148 if (gem_previouskeyboard[i] && !gem_currentkeyboard[i]) |
149 SDL_PrivateKeyboard(SDL_RELEASED, | 149 SDL_PrivateKeyboard(SDL_RELEASED, |
150 SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE)); | 150 SDL_Atari_TranslateKey(i, &keysym, |
151 SDL_FALSE)); | |
151 } | 152 } |
152 | 153 |
153 SDL_memcpy(gem_previouskeyboard, gem_currentkeyboard, | 154 SDL_memcpy(gem_previouskeyboard, gem_currentkeyboard, |
154 sizeof(gem_previouskeyboard)); | 155 sizeof(gem_previouskeyboard)); |
155 | 156 |
289 do_keyboard(short kc, short ks) | 290 do_keyboard(short kc, short ks) |
290 { | 291 { |
291 int scancode, asciicode; | 292 int scancode, asciicode; |
292 | 293 |
293 if (kc) { | 294 if (kc) { |
294 scancode=(kc>>8) & (ATARIBIOS_MAXKEYS-1); | 295 scancode = (kc >> 8) & (ATARIBIOS_MAXKEYS - 1); |
295 gem_currentkeyboard[scancode]=0xFF; | 296 gem_currentkeyboard[scancode] = 0xFF; |
296 } | 297 } |
297 | 298 |
298 /* Read special keys */ | 299 /* Read special keys */ |
299 if (ks & K_RSHIFT) | 300 if (ks & K_RSHIFT) |
300 gem_currentkeyboard[SCANCODE_RIGHTSHIFT] = 0xFF; | 301 gem_currentkeyboard[SCANCODE_RIGHTSHIFT] = 0xFF; |