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
S
1
Posts: 23
Reputation: 571

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
137
S
31
G
87
Posts: 5,551
Reputation: 60,446

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
S
1
Posts: 23
Reputation: 571


Return to How do I....?

Who is online

Users browsing this forum: Construct Monkey, dop2000 and 9 guests