Caps lock keyhit

wick

Member
3rd Party Module Dev
Tutorial Author
Patreon Bronze
Joined
Jul 17, 2017
Messages
71
Hi! Quick question: has anybody figured out how to detect caps lock keyhits? I don't see it in the mojo keycodes, and I was hoping to use it to toggle a menu.
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
2,845
If glfw supports it, i will add it.

EDIT: I skimmed through GLFWs docs and it supports this key. Will add it.
 
Last edited:

wick

Member
3rd Party Module Dev
Tutorial Author
Patreon Bronze
Joined
Jul 17, 2017
Messages
71
Ok, but no rush // don't worry about it if it's tricky! Using the backtick works just as well for my purposes. Thanks :)
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
2,845
Ok, I jumped to soon. There is no way to check the current state of the caps_lock key. GLFW only reports it during a key event.
But that means without press another key, you can't check it upfront when you app starts and it may be preactivated.
 
Top Bottom