what keycodes (key + modifiers) generate a given char

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux