KeyDown and Capslock?

Started by Yellownakji, April 13, 2019, 09:23:48

Previous topic - Next topic

Yellownakji

Is there a key value for CAPS LOCK?  I don't see anything for Keyhit/KeyDown.

Derron

#1
KEY_CAPSLOCK


For Windows OS you could use their API to request the current state of the caps lock: GetKeyStateA( keyState )

bye
Ron

Yellownakji

Quote from: Derron on April 13, 2019, 09:28:21
KEY_CAPSLOCK


For Windows OS you could use their API to request the current state of the caps lock: GetKeyStateA( keyState )

bye
Ron

I'm using the latest NG; I don't have a KEY_CAPSLOCK definition in polled input.

Henri

You can define it yourself then:

Code (blitzmax) Select

Const KEY_CAPSLOCK:int = 20


-Henri
- Got 01100011 problems, but the bit ain't 00000001

Yellownakji

Quote from: Henri on April 13, 2019, 10:27:45
You can define it yourself then:

Code (blitzmax) Select

Const KEY_CAPSLOCK:int = 20


-Henri

Thank you.    Is there a way to return the last key hit?

Derron

No.

But you could scan an archive keyhit states on your own.

Bye
Ron