Check for pressed keys
Submitted by michaelvogt on Wed, 2008-01-09 23:50.
Hello.
It's been a while since I did something with LiveStage Pro, so I don't seem to find a way to do the following:
I want to check inside an mouseclick event, if the user has pressed one of the command keys (shift, control,...) while clicking the mouse.
Any idea how this can be done?
There is the action keyisdown, but it seems that it only can be used for actual keys - meaning one of the character keys - as it needs a character as the second parameter. And the other key related actions can only be used inside a key-related event.
Thanks a lot,
Michael Vogt


Re: Check for pressed keys
Hello Michael,
It's been a while since I checked this forum, so I apologize for the lateness of a response.
Have you tried passing the kNone constant as the second parameter to KeyIsDown?
--Frank