comparison src/events/SDL_keyboard.c @ 4299:0ca47eaff9c9 SDL-1.2

Changed environment variable to match Debian patch 205_lock_keys.diff
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Oct 2009 09:02:17 +0000
parents 3b7fc3416601
children
comparison
equal deleted inserted replaced
4298:7d60c0ac6aae 4299:0ca47eaff9c9
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 = SDL_getenv("SDL_NO_LOCK_KEYS");
77 SDL_NoLockKeys = 0; 76 SDL_NoLockKeys = 0;
77 env = SDL_getenv("SDL_DISABLE_LOCK_KEYS");
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;
82 break; 82 break;