Numlock/caps-lock

Hi

It seems that SDL only registers when you turn ON numlock/capslock. Is
there a way around this, to get it to register OFF presses too, or is it
an os-specific “feature”?

Regards,
\Mikkel Gjoel

Hello

I haven’t tried it, but maybe this will work:
if(SDL_GetModState() & KMOD_NUM); /* Numlock enabled */
http://sdldoc.csn.ul.ie/sdlgetmodstate.php

Bernhard

Mikkel Gj?l wrote:> Hi

It seems that SDL only registers when you turn ON numlock/capslock. Is
there a way around this, to get it to register OFF presses too, or is it
an os-specific “feature”?

Regards,
\Mikkel Gjoel


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

It seems that SDL only registers when you turn ON numlock/capslock. Is
there a way around this, to get it to register OFF presses too, or is it
an os-specific “feature”?

I believe this was done because on some OS we only get the down event.
However, I’m looking to fix this for SDL 1.3

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment