For a relatively small number of keys, like the VR3 silkscreen buttons, you can use 
button hotkeys. Create a button widget for each silkscreen button, and assign 
PG_WP_HOTKEY on the button to the PGKEY_* constant for the button. The button will 
recieve that key's events. It can be unattached to the divtree if you don't want to 
see it onscreen.

If you need something more complex, like getting up/down events, or responding to 
large numbers of keys, that's what this "input filters" code will provide.

On Sat, May 25, 2002 at 09:39:53PM +0100, James Hollingshead wrote:
> I've been trying to work out how to make an app receive key press
> events when it doesn't have the focus, but not intercept them so that
> the app with the focus gets them. Using
> pgRegisterOwner(PG_OWN_KEYBOARD) makes the app receive all key events,
> but they don't get sent on to the app with the focus.
> 
> The reason for this is to try and use the silkscreen keys of the vr3ts
> input driver to pop up a window/menu/keyboard. The silkscreen keys
> appear to produce keyboard codes, so I want a (preferably unmapped)
> app that can listen out for these codes and then do something. What I
> want is something roughly equivalent to the hotkeys under many X
> window managers.
> 
> Is it not possible to do what I want at the moment, or am I missing
> something stupid?
> 
> James
> 
> 
> _______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel

-- 
Only you can prevent creeping featurism!

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

Reply via email to