Where does a keyDown or keyUp signal originate?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Where does a keyDown or keyUp signal originate?

Post by richmond62 » Wed Mar 20, 2024 5:05 pm

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?

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Where does a keyDown or keyUp signal originate?

Post by Klaus » Wed Mar 20, 2024 5:50 pm

I highly doubt this is possible!
LC only "catches" the key-event without being aware of its source.

Zax
Posts: 473
Joined: Mon May 28, 2007 10:12 am
Location: France
Contact:

Re: Where does a keyDown or keyUp signal originate?

Post by Zax » Thu Mar 21, 2024 11:00 am

Did you try RawKeyDown, just to be sure the key code sent by your gamepad is different from your keyboard?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Where does a keyDown or keyUp signal originate?

Post by richmond62 » Thu Mar 21, 2024 11:36 am

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.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”