src/events/SDL_keyboard.c
changeset 1336 3692456e7b0f
parent 1330 450721ad5436
child 1358 c71e05b4dc2e
     1.1 --- a/src/events/SDL_keyboard.c	Mon Feb 06 17:28:04 2006 +0000
     1.2 +++ b/src/events/SDL_keyboard.c	Tue Feb 07 06:59:48 2006 +0000
     1.3 @@ -60,8 +60,8 @@
     1.4  
     1.5  	/* Initialize the tables */
     1.6  	SDL_ModState = KMOD_NONE;
     1.7 -	memset(keynames, 0, sizeof(keynames));
     1.8 -	memset(SDL_KeyState, 0, sizeof(SDL_KeyState));
     1.9 +	SDL_memset(keynames, 0, sizeof(keynames));
    1.10 +	SDL_memset(SDL_KeyState, 0, sizeof(SDL_KeyState));
    1.11  	video->InitOSKeymap(this);
    1.12  
    1.13  	SDL_EnableKeyRepeat(0, 0);
    1.14 @@ -319,7 +319,7 @@
    1.15  	SDL_keysym keysym;
    1.16  	SDLKey key;
    1.17  
    1.18 -	memset(&keysym, 0, (sizeof keysym));
    1.19 +	SDL_memset(&keysym, 0, (sizeof keysym));
    1.20  	for ( key=SDLK_FIRST; key<SDLK_LAST; ++key ) {
    1.21  		if ( SDL_KeyState[key] == SDL_PRESSED ) {
    1.22  			keysym.sym = key;
    1.23 @@ -376,7 +376,7 @@
    1.24  	int posted, repeatable;
    1.25  	Uint16 modstate;
    1.26  
    1.27 -	memset(&event, 0, sizeof(event));
    1.28 +	SDL_memset(&event, 0, sizeof(event));
    1.29  
    1.30  #if 0
    1.31  printf("The '%s' key has been %s\n", SDL_GetKeyName(keysym->sym),