aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Better <marcus@better.se>2011-07-20 13:23:31 +0300
committerGerd Hoffmann <kraxel@redhat.com>2011-07-20 16:29:41 +0200
commit5551a6d6a391f19d3f1d1bc2574c1d4f7fc96824 (patch)
tree2620431e11d7e775e4ff1ec852c8e649ae0b08e7
parent07cac7fcea269a074bdeda8d1ff5ad41b1da9697 (diff)
downloadinput-5551a6d6a391f19d3f1d1bc2574c1d4f7fc96824.tar.gz
use system input.h
This will automatically bring newly defined keys and buttons, and won't be older than the 3 years old one currently shipped. http://bugs.debian.org/447550
-rw-r--r--input.h2
-rwxr-xr-xlirc.sh2
-rwxr-xr-xname.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/input.h b/input.h
index 0abdc8a..0576490 100644
--- a/input.h
+++ b/input.h
@@ -1,7 +1,7 @@
#include <inttypes.h>
#include <sys/ioctl.h>
-#include "linux-input.h"
+#include <linux/input.h>
#define ev_name(code) ((code) < EV_MAX && EV_NAME[code] ? EV_NAME[code] : "???")
#define ev_type_name(type, code) ((code) < EV_TYPE_MAX[type] && EV_TYPE_NAME[type][code] ? EV_TYPE_NAME[type][code] : "???")
diff --git a/lirc.sh b/lirc.sh
index 74a6169..2aec1fd 100755
--- a/lirc.sh
+++ b/lirc.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-INPUT="linux-input.h"
+INPUT="/usr/include/linux/input.h"
cat <<EOF
begin remote
name linux-input-layer
diff --git a/name.sh b/name.sh
index 562e0b4..744e9b8 100755
--- a/name.sh
+++ b/name.sh
@@ -1,7 +1,7 @@
#!/bin/sh
TYPE="$1"
-INPUT="linux-input.h"
+INPUT="/usr/include/linux/input.h"
awk "
/EV_VERSION/ { next };