From cb245d85d24a739ae72eebae78c3959ec42b3695 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 14 Nov 2004 22:29:43 +0000 Subject: removed the ev_ from the types svn path=/trunk/externals/hcs/hid/; revision=2270 --- make-arrays-from-input.h.pl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'make-arrays-from-input.h.pl') diff --git a/make-arrays-from-input.h.pl b/make-arrays-from-input.h.pl index 4030b01..0ebb7ea 100755 --- a/make-arrays-from-input.h.pl +++ b/make-arrays-from-input.h.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use Switch; @@ -162,8 +162,15 @@ print(ARRAYS "#include \"hid.h\"\n\n"); print(HEADER "\#ifndef _INPUT_ARRAYS_H\n"); print(HEADER "\#define _INPUT_ARRAYS_H\n\n\n"); +# strip the ev_ from the type names +for ($i=0; $i <= $#EV; ++$i) { + $_ = $EV[$i]; + s/ev_//; + $EVtemp[$i] = $_; +} + # generate a C array for each array and stick them all in the same file -printArray("ev",@EV); +printArray("ev",@EVtemp); printArray("ev_syn",@SYN); printArray("ev_key",@KEY); printArray("ev_rel",@REL); -- cgit v1.2.1