logo       

Re: inputlirc: zeroconf LIRC daemon using Linux input event devices: msg#00050

hardware.lirc

Subject: Re: inputlirc: zeroconf LIRC daemon using Linux input event devices

Diese Nachricht enthaelt eine MIME-codierte Binaerdatei. Falls Ihr
Mailer die Datei nicht decodieren kann, verwenden Sie dafuer bitte
ein Tool wie 'munpack' oder 'udec'.

This message contains a MIME encoded binary file. If your mailer
cannot decode the file, please use a decoding tool like 'munpack'.
Hi!

Buzz "buzz-zim0Ek+YwzE@xxxxxxxxxxxxxxxx" wrote:

> I don't know why this hasn't been done. But then again, I don't know how
> to do this either.... So maybe everyone else is in the same boat?

Ok, what about the script attached?

Christoph
#! /bin/sh

TYPES="KEY BTN"
file=${1:-/usr/include/linux/input.h}
cat <<EOF
begin remote
name dev/input
bits 16
eps 30
aeps 100
pre_data_bits 16
pre_data 0x8001
gap 132799
toggle_bit 0

begin codes
EOF

for type in $TYPES; do
grep "^#define ${type}_" < $file|while read; do
sed --expression="s/^#define \(.*\)/ \1/"
done
done
cat <<EOF
end codes
end remote
EOF
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise