Create a button widget, and set the PG_WP_HOTKEY property to the PGKEY value of
the key you want to catch. The button will catch that key and send a
PG_WE_ACTIVATE event when it does. If you don't want it to be visible, set the
button's PG_WP_SIZE property to zero.

This is already used by the PicoVR3 launcher program.

Quoting Pascal Bauermeister <[EMAIL PROTECTED]>:

> Hello,
> 
> does anybody knows whether/how a userland program can get a key event,
> without having the focus ?  E.g. a userland app wants to catch function
> key presses and do some action upon; it may even not have any stuff
> opened on the screen !
> 
> TIA,
> 
>    Pascal
> 
> 
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel
> 



--
Only you can prevent creeping featurism!

_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to