comparison src/events/SDL_keyboard.c @ 4162:3b7fc3416601 SDL-1.2

GAPI fixes from Stefan Klug
author Sam Lantinga <slouken@libsdl.org>
date Mon, 16 Feb 2009 22:32:34 +0000
parents a1b03ba2fcd0
children 0ca47eaff9c9
comparison
equal deleted inserted replaced
4161:bd91db0b0b5d 4162:3b7fc3416601
71 video->InitOSKeymap(this); 71 video->InitOSKeymap(this);
72 72
73 SDL_EnableKeyRepeat(0, 0); 73 SDL_EnableKeyRepeat(0, 0);
74 74
75 /* Allow environment override to disable special lock-key behavior */ 75 /* Allow environment override to disable special lock-key behavior */
76 env = getenv("SDL_NO_LOCK_KEYS"); 76 env = SDL_getenv("SDL_NO_LOCK_KEYS");
77 SDL_NoLockKeys = 0; 77 SDL_NoLockKeys = 0;
78 if (env) { 78 if (env) {
79 switch (SDL_atoi(env)) { 79 switch (SDL_atoi(env)) {
80 case 1: 80 case 1:
81 SDL_NoLockKeys = SDL_NLK_CAPS | SDL_NLK_NUM; 81 SDL_NoLockKeys = SDL_NLK_CAPS | SDL_NLK_NUM;