comparison src/video/gem/SDL_gemevents.c @ 285:e5a489f0288c

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Fri, 22 Feb 2002 17:39:11 +0000
parents c5010ab8ba35
children f6ffac90895c
comparison
equal deleted inserted replaced
284:d8b7eae78652 285:e5a489f0288c
178 if (gem_currentkeyboard[i] && !gem_previouskeyboard[i]) 178 if (gem_currentkeyboard[i] && !gem_previouskeyboard[i])
179 SDL_PrivateKeyboard(SDL_PRESSED, TranslateKey(i, gem_currentascii[i], &keysym)); 179 SDL_PrivateKeyboard(SDL_PRESSED, TranslateKey(i, gem_currentascii[i], &keysym));
180 180
181 /* Key unpressed ? */ 181 /* Key unpressed ? */
182 if (gem_previouskeyboard[i] && !gem_currentkeyboard[i]) 182 if (gem_previouskeyboard[i] && !gem_currentkeyboard[i])
183 SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(i, 0, &keysym)); 183 SDL_PrivateKeyboard(SDL_RELEASED, TranslateKey(i, gem_currentascii[i], &keysym));
184 } 184 }
185 185
186 memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard)); 186 memcpy(gem_previouskeyboard,gem_currentkeyboard,sizeof(gem_previouskeyboard));
187 } 187 }
188 188