Skip to content

Commit

Permalink
Changed environment variable to match Debian patch 205_lock_keys.diff
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 10, 2009
1 parent 2aa8c09 commit b7f7e6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WhatsNew
Expand Up @@ -8,7 +8,7 @@ Version 1.0:
SDL_reinterpret_cast(type, expression)
SDL_static_cast(type, expression)

Added SDL_NO_LOCK_KEYS environment variable to enable normal
Added SDL_DISABLE_LOCK_KEYS environment variable to enable normal
up/down events for Caps-Lock and Num-Lock keys.

1.2.13:
Expand Down
2 changes: 1 addition & 1 deletion docs.html
Expand Up @@ -34,7 +34,7 @@ <H3> General Notes </H3>
Fixed freeze in SDL_memset() with 0 length when assembly code is disabled.
</P>
<P>
Added SDL_NO_LOCK_KEYS environment variable to enable normal up/down events for Caps-Lock and Num-Lock keys.
Added SDL_DISABLE_LOCK_KEYS environment variable to enable normal up/down events for Caps-Lock and Num-Lock keys.
</P>
<P>
Fixed audio quality problem when converting between 22050 Hz and 44100 Hz.
Expand Down
2 changes: 1 addition & 1 deletion src/events/SDL_keyboard.c
Expand Up @@ -73,8 +73,8 @@ int SDL_KeyboardInit(void)
SDL_EnableKeyRepeat(0, 0);

/* Allow environment override to disable special lock-key behavior */
env = SDL_getenv("SDL_NO_LOCK_KEYS");
SDL_NoLockKeys = 0;
env = SDL_getenv("SDL_DISABLE_LOCK_KEYS");
if (env) {
switch (SDL_atoi(env)) {
case 1:
Expand Down

0 comments on commit b7f7e6a

Please sign in to comment.