diff options
author | kraxel <kraxel> | 2004-04-21 11:55:44 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2004-04-21 11:55:44 +0000 |
commit | c4d7dacb41039e087d20b8889a4d13bd4c9928f2 (patch) | |
tree | 0aef1f53f2e8cd55c4db8915d9d9a1265dd97adc /lirc.sh | |
download | input-c4d7dacb41039e087d20b8889a4d13bd4c9928f2.tar.gz |
Initial revision
Diffstat (limited to 'lirc.sh')
-rwxr-xr-x | lirc.sh | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#!/bin/sh +INPUT="linux-input.h" +cat <<EOF +begin remote + name linux-input-layer + begin codes +EOF +awk " + /_MAX/ { next }; + /KEY_RESERVED/ { next }; + /#define (KEY|BTN)_/ { gsub(/KEY_/,\"\",\$2); + printf(\"\t\t%-20s 0x%04x\n\", + \$2,0x10000+strtonum(\$3)) } +" < $INPUT +cat <<EOF + end codes +end remote +EOF |