Page 1 of 1

Where does a keyDown or keyUp signal originate?

Posted: Wed Mar 20, 2024 5:05 pm
by richmond62
I have a gamepad, a 5-button mouse, and a keyboard connected to my computer.

My gamepad has a button that sends a 'q' to my system, and to LC.

Is there a way I can detect that that 'q' signal originates with the gamepad rather than from my keyboard inside LiveCode?

Re: Where does a keyDown or keyUp signal originate?

Posted: Wed Mar 20, 2024 5:50 pm
by Klaus
I highly doubt this is possible!
LC only "catches" the key-event without being aware of its source.

Re: Where does a keyDown or keyUp signal originate?

Posted: Thu Mar 21, 2024 11:00 am
by Zax
Did you try RawKeyDown, just to be sure the key code sent by your gamepad is different from your keyboard?

Re: Where does a keyDown or keyUp signal originate?

Posted: Thu Mar 21, 2024 11:36 am
by richmond62
Did you try RawKeyDown, just to be sure the key code sent by your gamepad is different from your keyboard?
Yes, I did: no such luck.

Thank you for the suggestion.