comparison src/events/SDL_keyboard.c @ 14:c3e9d4a623c1

Fixed stuck keys when changing the video mode
author Sam Lantinga <slouken@lokigames.com>
date Tue, 01 May 2001 21:12:57 +0000
parents 74212992fb08
children 8f33e95b43b6
comparison
equal deleted inserted replaced
13:e30a8ce27c22 14:c3e9d4a623c1
333 if ( SDL_KeyState[key] == SDL_PRESSED ) { 333 if ( SDL_KeyState[key] == SDL_PRESSED ) {
334 keysym.sym = key; 334 keysym.sym = key;
335 SDL_PrivateKeyboard(SDL_RELEASED, &keysym); 335 SDL_PrivateKeyboard(SDL_RELEASED, &keysym);
336 } 336 }
337 } 337 }
338 SDL_KeyRepeat.timestamp = 0;
338 } 339 }
339 340
340 int SDL_EnableUNICODE(int enable) 341 int SDL_EnableUNICODE(int enable)
341 { 342 {
342 int old_mode; 343 int old_mode;