src/video/gem/SDL_gemevents.c
changeset 285 e5a489f0288c
parent 281 c5010ab8ba35
child 297 f6ffac90895c
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