Skip to main content
October 28, 2015
Answered

2 keys and 1 click

  • October 28, 2015
  • 1 reply
  • 326 views

Hello, i would like to do 2 things in the same time :

When I click on the button and when the click stay down :

i put on the keyboard, for example "a" and "h".

And then the instructions follow.

i haven't found an example of this, on the net... or it's just one of part.

Any idea, please?

Thx for your help

This topic has been closed for replies.
Correct answer Ned Murphy

Use a MOUSE_DOWN event to trigger a Boolean variable to be TRUE and a MOUSE_UP event to trigger that same variable to be FALSE.   Make use of that variable in your keyboard code so that when you detect the desired keys are in use you can use the Boolean to determine whether or not to process the instructions.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
October 28, 2015

Use a MOUSE_DOWN event to trigger a Boolean variable to be TRUE and a MOUSE_UP event to trigger that same variable to be FALSE.   Make use of that variable in your keyboard code so that when you detect the desired keys are in use you can use the Boolean to determine whether or not to process the instructions.

November 1, 2015

thanks i will see that

Ned Murphy
Legend
November 1, 2015

You're welcome