Hi!

 I like to know what keycodes (key + modifiers) are needed to
generate/fake a given character.


An example might make it clearer (I hope), I want an application to fake
the user user typing the character "/". On a swedish keyboard this is done
like this:
  1) press "shift"
  2) press "7"
  3) release "7"
  3) release "shift"
but on another keyboard it is generated a completely different way.


 One can map "/" to a keysym in a table:
     "/" ---> XK_slash
 and from this keysym one can get the keycode
    XKeysymToKeycode
 and from that keycode one can go through the indexes with
    XKeycodeToKeysym
 ... and from there?????



/h

_______________________________________________
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

Reply via email to