From 732d359c182794df20e78b4e00db4c5bf123dfec Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 8 Dec 2006 06:33:26 +0000 Subject: - laid out new event labeling scheme based more on USB HID rather than Linux input.h. It works on my devices on my Mac OS X. I probably broke Linux support. The scheme is in a new file, hidio_types.c - all event symbols except the vendor-defined usage are generated in hidio_setup(). The symbols for vendor-defined usages are generated when the device's element list is built. - changed macros to work cleanly when compiled on Windows using MinGW gcc - fixed up help file to better represent the state of things (still could be much better) svn path=/trunk/externals/io/hidio/; revision=6718 --- hidio_linux.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hidio_linux.c') diff --git a/hidio_linux.c b/hidio_linux.c index a7e1c1c..7da4ff9 100644 --- a/hidio_linux.c +++ b/hidio_linux.c @@ -15,6 +15,12 @@ #include "hidio.h" +/* + * this is automatically generated from linux/input.h by + * make-arrays-from-input.h.pl to be the cross-platform event types and codes + */ +#include "input_arrays.h" + #define DEBUG(x) //#define DEBUG(x) x -- cgit v1.2.1