Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sort of working huuuuzzzzzaaaahhhh

  • Loading branch information...
commit 8b04b40f1ea40c5eefff81f5cd3e5762697a47db 1 parent c240d2c
@phooky authored
Showing with 7 additions and 3 deletions.
  1. +1 −1  Makefile
  2. +6 −2 eventmap.c
View
2  Makefile
@@ -4,7 +4,7 @@
#
TARGETS += video
TARGETS += x11ibm
-#TARGETS += eventmap
+TARGETS += eventmap
LEDSCAPE_DIR ?= ../LEDscape
eventmap.LDLIBS := \
View
8 eventmap.c
@@ -8,7 +8,8 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <linux/input.h>
-//#include <X11/extensions/XTest.h>
+#include <X11/Xproto.h>
+#include <X11/extensions/XTest.h>
#include <X11/Xlib.h>
#include <unistd.h>
#include <err.h>
@@ -368,7 +369,10 @@ read_one(
int is_press = ev->up;
int key = keymap[button];
if (key != 0)
- FakeKeyEvent(dpy, key, is_press, 0);
+ {
+ XTestFakeKeyEvent(dpy, key, is_press, 0);
+ //FakeKeyEvent(dpy, key, is_press, 0);
+ }
else
printf("EV_KEY code=%d->%d unhandled\n", ev->code, key);
}
Please sign in to comment.
Something went wrong with that request. Please try again.