This is actually a very cool way of doing things. Now that I think about it
again, it's almost like the button on the keyboard is mapped in as a button
in your application. You basically replace the LCD (or whatever)
representation of a button with a physical representation of a button, but
the software will treat both the same way.

-Sean

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Micah Dowty
> Sent: Tuesday, October 30, 2001 11:13 PM
> To: Pascal Bauermeister
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Pgui-devel] Getting key events w/o having the focus
>
>
> 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


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

Reply via email to