1.1 --- a/src/drivers/genkeymap.pl Sun Jun 01 00:47:45 2008 +0000
1.2 +++ b/src/drivers/genkeymap.pl Tue Oct 26 09:22:22 2010 +1000
1.4 print "const gchar *${name}_keysyms_by_keycode[128] = { ";
1.5 for( $i=0; $i < 128; $i++ ) {
1.6 if( $i != 0 ) { print ", "; }
1.8 + if( defined($hash{$i}) ) {
1.9 print "\"$hash{$i}\"";
1.13 print "const uint16_t ${name}_keycode_to_dckeysym[128] = { ";
1.14 for( $i=0; $i<128; $i++ ) {
1.15 if( $i != 0 ) { print ", "; }
1.16 - if( $hash{$i} && $dcsyms{$hash{$i}} ) {
1.17 + if( defined($hash{$i}) && $dcsyms{$hash{$i}} ) {
1.18 print $dcsyms{$hash{$i}};