button press simulation

I wrote a CB_RAW callback that check key pressing.
And I want this function to simulate a button press event, i.e.,
if I press ‘+’ the button should be pressed as if I had clicked
with mouse on it, or pressed keypad Enter.
I have to simulate exactly what happens when someone press
keypad Enter. If I keep it pressed, button should be kept SET,
and if I released it, button should be UNSET. And not just for
visual. Callbacks like activate, arm and disarm should be called
by photon itself

Anyone ever tried to do that?


Thanks!

Ricardo K. Ashikawa



\

Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com

Ricardo Kazumi Ashikawa <ashikawaNOasSPAM@dixtal.com.br.invalid> wrote:

Anyone ever tried to do that?

Not exactly, but you should be able to simulate this behavior
exactly using the PhEventEmit() routine.

If you don’t need to filter these events, another approach would
be to gather the events with a non-opaque region. That way you will
see the event, but will not need to simulte it.


Mitchell Schoenbrun --------- maschoen@pobox.com