diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2004-11-14 22:29:43 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2004-11-14 22:29:43 +0000 |
commit | cb245d85d24a739ae72eebae78c3959ec42b3695 (patch) | |
tree | 2575ad5e16999ebc2ca37a61aebcd3f40905a62c /make-arrays-from-input.h.pl | |
parent | e12059711346f72f73cb3595548f75d88aef56d1 (diff) |
removed the ev_ from the types
svn path=/trunk/externals/hcs/hid/; revision=2270
Diffstat (limited to 'make-arrays-from-input.h.pl')
-rwxr-xr-x | make-arrays-from-input.h.pl | 11 |
1 files changed, 9 insertions, 2 deletions
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); |