Keyboard input

Mac OSX specific forum
Wolfram
Enthusiast
Enthusiast
Posts: 568
Joined: Thu May 30, 2013 4:39 pm

Keyboard input

Post by Wolfram »

Hello everybody!

I want to program my own table gadget and I have no idea how make a Keyboard input.
How can I get an input from all Keys of the Keyboard like it is on a StringGadget()?

Thanks for help
macOS Catalina 10.15.7
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Keyboard input

Post by wilbert »

I'm not exactly sure what you want but if you are using the CanvasGadget to create your own gadget, you can probably use #PB_EventType_Input .
If you want to catch keys without having focus to a specific gadget, you can tap into the event stream for key down events.
Windows (x64)
Raspberry Pi OS (Arm64)
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Keyboard input

Post by davido »

wilbert wrote:If you want to catch keys without having focus to a specific gadget, you can tap into the event stream for key down events.
Now that is interesting!
Must investigate. Thank you, very much. :D
DE AA EB
Wolfram
Enthusiast
Enthusiast
Posts: 568
Joined: Thu May 30, 2013 4:39 pm

Re: Keyboard input

Post by Wolfram »

Maybe #PB_EventType_Input is a good starting point.

Thanks
macOS Catalina 10.15.7
Post Reply