Skip to content

Gehry Buildings, Duesseldorf, Germany by Holger Turck.

Check for pressed keys

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

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