Original Post
Is there a way to check the "state" of Caps Lock (active, lit vs. inactive, unlit). Or, does DirectInput merely check whether it is currently pressed or not?
quote:
Original post by SGreth
From my travels I found it easiest just to keep track if caps lock is "active" or not. It shouldn''t be a problem if you''re using buffered input. If you''re not...let''s just hope you don''t miss a key-press
~Rob
quote:
Original post by SGreth
For now, my code just assumes that the caps lock is off and then each time it is hit I toggle a boolean in my code (indicating if capslock is on or off). I thought (once upon a time...) that I saw an example in the DX SDK where they actually toggle''d the state of capslock in code. I''m not sure where to find that example though...
~Rob
quote:
Original post by Mastaba
GetKeyboardState will return the current state of the Caps Lock, Num Lock, and Scroll Lock toggle keys.
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more