diff options
Diffstat (limited to 'tools/ioemu/gui/keymaps/convertmap.pl')
-rw-r--r-- | tools/ioemu/gui/keymaps/convertmap.pl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/ioemu/gui/keymaps/convertmap.pl b/tools/ioemu/gui/keymaps/convertmap.pl new file mode 100644 index 0000000000..18c47bea93 --- /dev/null +++ b/tools/ioemu/gui/keymaps/convertmap.pl @@ -0,0 +1,14 @@ +#!/usr/bin/perl +# little utility script that I used to convert key map files from +# the pre-March 11 format to the post-March 11 format. It doesn't +# do anything smart with the ascii equivalents and modifiers, so ATM those must +# be added by hand. + +while (<STDIN>) +{ + chop; + s/^ *//; + if (/^#/ || /^ *$/) { print "$_\n"; next;} + ($key, $equals, $xksym) = split (/ +/); + printf ("%-45s %-10s %s\n", $key, 'none', "XK_$xksym"); +} |