Sort of...
You can capture all input, but there's no way to pass that back to the rest of the
input dispatching system.
The closest thing to this now is the 'hotkey' system for widgets. You can set the
WP_HOTKEY property of a widget to a PGKEY_* constant, and the widget will be activted
when that key is pressed whether it is focused or not.
I can see two ways to implement this event filter:
- The app could register an actual event filter function which would optionally pass
the event on to the rest of PicoGUI. This would require very little extra memory, but
it would require more new code. Another drawback is that all events must be passed to
each filtering app and back (synchronously) which could slow things down.
- You could create an invisible button widget, and bind it to the hotkey. This would
require almost no new code. (just a 'visible' property for widgets, which we need
anyway) The widget would take a little more memory than the event filter idea above.
It would also be a little less flexible: you could intercept a specified key, but
couldn't do something more complex like a keyboard mapping.
What do you think?
Actually, you could probably use the second option right now by creating a box widget,
setting it's size to zero, then putting the hotkey buttons inside it. The visibility
property would be easy to implement though.
On Tue, 17 July 2001, "Sean Barnes" wrote:
>
> Is it possible for one application to process all keyboard event before they
> get passed to their normal event processor? I would like to have my VR3
> touchscreen driver send F1 - F7 keys for the seven silkscreen buttons. Then
> the session manager (a program launcher right now) could launch a different
> program for each of the 7 buttons. No matter which application or widget has
> the focus, the session manager should still receive the keyboard event.
>
> Thanks for any help!
>
> -Sean
>
> PS: I like the handle error message ;-) (something like "You've stepped in
> the stream, but the water has moved on. The handle is no longer there.")
>
>
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/pgui-devel
--
To the systems programmer, users and applications serve only to provide a
test load.
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/pgui-devel