Search
lxdream.org :: lxdream/src/drivers/genkeymap.pl :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/genkeymap.pl
changeset 917:2146dd5529fd
prev681:1755a126b109
next1183:425d9de21c78
author nkeynes
date Sat Jun 13 00:50:48 2009 +0000 (14 years ago)
permissions -rw-r--r--
last change Build drivers with library dependencies as shared objects (ie plugins)
file annotate diff log raw
1.1 --- a/src/drivers/genkeymap.pl Sun Jun 01 00:47:45 2008 +0000
1.2 +++ b/src/drivers/genkeymap.pl Sat Jun 13 00:50:48 2009 +0000
1.3 @@ -27,7 +27,7 @@
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.7 - if( $hash{$i} ) {
1.8 + if( defined($hash{$i}) ) {
1.9 print "\"$hash{$i}\"";
1.10 } else {
1.11 print "NULL";
1.12 @@ -38,7 +38,7 @@
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}};
1.19 } else {
1.20 print "DCKB_NONE";
.