src/events/SDL_keyboard.c
changeset 1760 a9be6a3a51d1
parent 1612 97d0966f4bf7
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4138 b1fd24d62e55
equal deleted inserted replaced
1759:724cca1bda2d 1760:a9be6a3a51d1
    57 	/* Set default mode of UNICODE translation */
    57 	/* Set default mode of UNICODE translation */
    58 	SDL_EnableUNICODE(DEFAULT_UNICODE_TRANSLATION);
    58 	SDL_EnableUNICODE(DEFAULT_UNICODE_TRANSLATION);
    59 
    59 
    60 	/* Initialize the tables */
    60 	/* Initialize the tables */
    61 	SDL_ModState = KMOD_NONE;
    61 	SDL_ModState = KMOD_NONE;
    62 	SDL_memset(keynames, 0, sizeof(keynames));
    62 	SDL_memset((void*)keynames, 0, sizeof(keynames));
    63 	SDL_memset(SDL_KeyState, 0, sizeof(SDL_KeyState));
    63 	SDL_memset(SDL_KeyState, 0, sizeof(SDL_KeyState));
    64 	video->InitOSKeymap(this);
    64 	video->InitOSKeymap(this);
    65 
    65 
    66 	SDL_EnableKeyRepeat(0, 0);
    66 	SDL_EnableKeyRepeat(0, 0);
    67 
    67