[SDL] Capslock
David Olofson
david at olofson.net
Sat Apr 3 12:42:07 PDT 2010
On Saturday 03 April 2010, at 21.12.06, "Mars_999" <mars999 at sio.midco.net>
wrote:
> Hello,
>
> Is there anyway to query if the Capslock key id on?
Check for KMOD_CAPS in the mod field of the SDL_keysym?
There is also a keycode for the actual key: SDLK_CAPSLOCK. I suppose tracking
the state of that should work, but I'm not sure if you get the state of the
*key* or the keyboard/system capslock state... I would assume and hope for the
former. :-)
--
//David Olofson - Developer, Artist, Open Source Advocate
.--- Games, examples, libraries, scripting, sound, music, graphics ---.
| http://olofson.net http://kobodeluxe.com http://audiality.org |
| http://eel.olofson.net http://zeespace.net http://reologica.se |
'---------------------------------------------------------------------'
More information about the SDL
mailing list