[PATCH 2/2] RFC: Implement XInputSetState
Christoph Brill
egore911 at gmail.com
Sat Feb 11 16:52:56 CST 2017
---
dlls/xinput1_3/Makefile.in | 2 ++
dlls/xinput1_3/xinput1_3_main.c | 10 ++++++++++
2 files changed, 12 insertions(+)
diff --git a/dlls/xinput1_3/Makefile.in b/dlls/xinput1_3/Makefile.in
index cf8f730e99..c2683b0d50 100644
--- a/dlls/xinput1_3/Makefile.in
+++ b/dlls/xinput1_3/Makefile.in
@@ -4,4 +4,6 @@ IMPORTLIB = xinput
C_SRCS = \
xinput1_3_main.c
+EXTRALIBS = -levdev
+
RC_SRCS = version.rc
diff --git a/dlls/xinput1_3/xinput1_3_main.c b/dlls/xinput1_3/xinput1_3_main.c
index e91304f9ef..94d8f13d9a 100644
--- a/dlls/xinput1_3/xinput1_3_main.c
+++ b/dlls/xinput1_3/xinput1_3_main.c
@@ -20,7 +20,17 @@
#include "config.h"
#include <assert.h>
#include <stdarg.h>
+#include <stdio.h> /* sprintf */
#include <string.h>
+#include <sys/stat.h> /* open */
+#include <fcntl.h> /* open */
+#include <errno.h> /* ENOENT */
+#include <unistd.h> /* close */
+
+#ifdef __linux__
+#include <linux/input.h>
+#include <libevdev-1.0/libevdev/libevdev.h>
+#endif
#include "wine/debug.h"
#include "windef.h"
--
2.11.1
More information about the wine-patches
mailing list