Changed environment variable to match Debian patch 205_lock_keys.diff
--HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404016
This commit is contained in:
parent
37ec7a4604
commit
2fd226c25c
3 changed files with 3 additions and 3 deletions
2
WhatsNew
2
WhatsNew
|
@ -8,7 +8,7 @@ Version 1.0:
|
||||||
SDL_reinterpret_cast(type, expression)
|
SDL_reinterpret_cast(type, expression)
|
||||||
SDL_static_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.
|
up/down events for Caps-Lock and Num-Lock keys.
|
||||||
|
|
||||||
1.2.13:
|
1.2.13:
|
||||||
|
|
|
@ -34,7 +34,7 @@ SDL 1.2.14 is a significant bug fix release and a recommended update.
|
||||||
Fixed freeze in SDL_memset() with 0 length when assembly code is disabled.
|
Fixed freeze in SDL_memset() with 0 length when assembly code is disabled.
|
||||||
</P>
|
</P>
|
||||||
<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>
|
||||||
<P>
|
<P>
|
||||||
Fixed audio quality problem when converting between 22050 Hz and 44100 Hz.
|
Fixed audio quality problem when converting between 22050 Hz and 44100 Hz.
|
||||||
|
|
|
@ -73,8 +73,8 @@ int SDL_KeyboardInit(void)
|
||||||
SDL_EnableKeyRepeat(0, 0);
|
SDL_EnableKeyRepeat(0, 0);
|
||||||
|
|
||||||
/* Allow environment override to disable special lock-key behavior */
|
/* Allow environment override to disable special lock-key behavior */
|
||||||
env = SDL_getenv("SDL_NO_LOCK_KEYS");
|
|
||||||
SDL_NoLockKeys = 0;
|
SDL_NoLockKeys = 0;
|
||||||
|
env = SDL_getenv("SDL_DISABLE_LOCK_KEYS");
|
||||||
if (env) {
|
if (env) {
|
||||||
switch (SDL_atoi(env)) {
|
switch (SDL_atoi(env)) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue