Skip to content

Commit

Permalink
keysyms to keycodes
Browse files Browse the repository at this point in the history
  • Loading branch information
phooky committed Feb 9, 2014
1 parent 5eb6403 commit 0f5c579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eventmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ read_one(
int key = keymap[button];
if (key != 0)
{
XTestFakeKeyEvent(dpy, key, is_press, 0);
KeyCode code = XKeysymToKeycode(display, key);
XTestFakeKeyEvent(dpy, code, is_press, 0);
//FakeKeyEvent(dpy, key, is_press, 0);
}
else
Expand Down

0 comments on commit 0f5c579

Please sign in to comment.