Page 1 of 1
Keyboard input
Posted: Sat Dec 05, 2015 7:35 pm
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
Re: Keyboard input
Posted: Sat Dec 05, 2015 8:16 pm
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.
Re: Keyboard input
Posted: Sat Dec 05, 2015 8:27 pm
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.

Re: Keyboard input
Posted: Sat Dec 05, 2015 9:06 pm
by Wolfram
Maybe #PB_EventType_Input is a good starting point.
Thanks