"Caps Lock" and "Num Lock" can not be used as normal binds since they
do not send a KEYUP event until the key is pressed again."

That's actually easily reversed with an environmental variable:
SDL_DISABLE_LOCK_KEYS

                        case 1:
                                SDL_NoLockKeys = SDL_NLK_CAPS | SDL_NLK_NUM;
                                break;
                        case 2:
                                SDL_NoLockKeys = SDL_NLK_CAPS;
                                break;
                        case 3:
                                SDL_NoLockKeys = SDL_NLK_NUM;
                                break;
                        default:
                                break;

Or one can change the default on SDL_KeyboardInit() of their SDL lib.
_______________________________________________
ioquake3 mailing list
ioquake3@lists.ioquake.org
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.

Reply via email to