comparison docs/html/sdlenvvars.html @ 4138:b1fd24d62e55 SDL-1.2

Date: Tue, 05 Feb 2008 01:41:08 -0500 From: Mike Miscevic Subject: SDL and capslock/numlock Find attached a patch against SDL-1.2.13 for check of SDL_NO_LOCK_KEYS environment variable. This differs slightly from other patches I've seen in that it has 3 modes: Disable CAPS-LOCK and NUM-LOCK supression of down+up key events, suitable for games where the player needs these keys to do more than just toggle. A value of 1 will effect both CAPS-LOCK and NUM-LOCK. A value of 2 will effect only CAPS-LOCK. A value of 3 will effect only NUM-LOCK. All other values have no effect. This works for me and has been tested on: - Fedora 8 64-bit - SRCRPM SDL-1.2.13-1.fc8.src.rpm - Emeny Territory Quake Wars (ETQW), native 32-bit commercial game --Mike Miscevic
author Sam Lantinga <slouken@libsdl.org>
date Tue, 26 Feb 2008 10:50:28 +0000
parents e6112676c9a0
children 0660995cdd3b
comparison
equal deleted inserted replaced
4137:be12463f31ea 4138:b1fd24d62e55
668 ></DT 668 ></DT
669 ><DD 669 ><DD
670 ><P 670 ><P
671 >If set, the linux fbcon driver will not use a mouse at all.</P 671 >If set, the linux fbcon driver will not use a mouse at all.</P
672 ></DD 672 ></DD
673 ><DT
674 ><TT
675 CLASS="LITERAL"
676 >SDL_NO_LOCK_KEYS</TT
677 ></DT
678 ><DD
679 ><P
680 >Disable CAPS-LOCK and NUM-LOCK suppression of down+up key events,
681 suitable for games where the player needs these keys to do more than just toggle.
682 A value of 1 will effect both CAPS-LOCK and NUM-LOCK.
683 A value of 2 will effect only CAPS-LOCK.
684 A value of 3 will effect only NUM-LOCK.
685 All other values have no effect.
686 </P
687 ></DD
673 ></DL 688 ></DL
674 ></DIV 689 ></DIV
675 ></DIV 690 ></DIV
676 ><DIV 691 ><DIV
677 CLASS="REFSECT1" 692 CLASS="REFSECT1"