Quantcast
Channel: Cockos Incorporated Forums
Viewing all articles
Browse latest Browse all 51196

Lua: See if a key is pressed when the script is run?

$
0
0
^ That.

Do we have any way to check the state of a specific keyboard key? i.e.
Code:

local shift_pressed = GetKeyState("shift")
I was hoping to use Shift+Click on my script's toolbar button to open a settings dialog instead of running the script normally, but I'm coming up empty-handed on a way to check for it.

Cheers.

Viewing all articles
Browse latest Browse all 51196

Latest Images

Trending Articles



Latest Images