KMOD_CAPS only updated on startup

It seems that the KMOD_CAPS modifier is only set when the caps lock key is set when starting SDL. However, it still reports being set after toggled off. When caps lock is off when SDL is started it always reports that cap lock is off even when toggled on. It seems to be the same with KMOD_NUM. Using SDL_GetModState() reports the same behavior. My program is in windowed mode if that makes any difference. It is using a standard loop with SDL_PollEvent ().

I am using SDL 1.2 but am not sure which sub version of 1.2. Has anyone else noticed this?

Thanks in advance,
Charlie

It seems that the KMOD_CAPS modifier is only set when the caps lock key
is set when starting SDL. However, it still reports being set after
toggled off. When caps lock is off when SDL is started it always reports
that cap lock is off even when toggled on. It seems to be the same with
KMOD_NUM. Using SDL_GetModState() reports the same behavior. My program
is in windowed mode if that makes any difference. It is using a standard
loop with SDL_PollEvent ().

I am using SDL 1.2 but am not sure which sub version of 1.2. Has anyone
else noticed this?

I have not noticed it personally, but there is a similar sounding bug in
our tracker:
http://sourceforge.net/tracker/index.php?func=detail&aid=1841913&group_id=1997&atid=101997

GregoryOn Thu, 15 Apr 2010, CharlieB wrote: