Quoting Bruce M Beach <[EMAIL PROTECTED]>:

  Hi,

[snip]

Please CC any replies to [EMAIL PROTECTED] (my paid for account)
since I'm forced to use the spam mail due to brain-dead SpamAssassin 

[snip]

>    Hello All
> 
>     I am writeing an applications using Intrinsics, and can't
>     figure out how to extract the KeySym from a key event routine
>     once the routine is executed. I.e. I have:
> 
>          XtActionsRec    edit_actions[] = {
>              .             .             .
>              .             .             .
>              .             .             .
>              {"KeyEventEditor"   , KeyEventEditor}
>          };
> 
>          String   edit_trans =
>              .             .             .
>              .             .             .
>              .             .             .
>              <KeyDown>:KeyEventEditor()";
> 
>     After a key event "KeyEventEditor" executes correctly and then
>     I want to find out what key had been pressed and act accordingly.
> 
>          "KeySym XtGetActionKeysym(event, modifiers_return)"
> 
>     looks like a likely candidate but I can't figure out what or
>     where "event" comes from or how to point to it. The only
> information
>     that I have is:
> 
>          event: Specifies the event pointer passed to the
>                 action procedure by the Intrinsics.

  Depending on what you need, just the event passed to the XtActionProc
should be enough, not sure about modifiers state, but should be ok for
the translation table sample you provided. Is the function KeyEventEditor
being properly defined? XtActionProc is defined as:
typedef void (*XtActionProc)(
#if NeedFunctionPrototypes
    Widget              /* widget */,
    XEvent*             /* event */,
    String*             /* params */,
    Cardinal*           /* num_params */
#endif
);
so the XEvent pointer is available in KeyEventEditor.

>     and a grep through xc/programs just shows that nobody uses it.
>     Suggestions or pointers would be welcome.
> 
>     Bruce
> 
> 
> =====
> [EMAIL PROTECTED]
> 
> ______________________________________________________________________
> 
> Post your free ad now! http://personals.yahoo.ca
> _______________________________________________
> Xpert mailing list
> [EMAIL PROTECTED]
> http://XFree86.Org/mailman/listinfo/xpert

Paulo
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to