How do I detect CAPS LOCK

Get help using Construct 2

Post » Sat Aug 09, 2014 3:56 pm

Hi there.
I would like to determine whether CAPS LOCK is set or not.
I seem to get the keyboard object to do this - if you check to see if CAPS LOCK is down or not, it behaves like any other key.

Thanks in advance.
B
6
Posts: 23
Reputation: 421

Post » Sat Aug 09, 2014 4:08 pm

Have you tried testing for keycode?

i.e.

On Keycode 20 Pressed ------------------- Do action
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,413
Reputation: 59,510

Post » Sat Aug 09, 2014 4:21 pm

Just tried your suggestion.
It does the same thing as testing for the key itself.

I need to see whether the CAPS LOCK state is on or off.
B
6
Posts: 23
Reputation: 421


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, busydude, pcfernandesjr and 25 guests