src/mess/machine/poly88.c
| r4787 | r4788 | |
| 67 | 67 | key_code = 0x30 + row_number(code) + 8*i; // for numbers and some signs |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | | if (i==1 && shift==1) { |
| 71 | | key_code = 0x20 + row_number(code) + 8*i; // for shifted numbers |
| 72 | | } |
| 73 | | if (i>=2 && i<=4 && shift==0 && ctrl==0) { |
| 70 | if (i>=2 && i<=4 && shift==1 && ctrl==0) { |
| 74 | 71 | key_code = 0x60 + row_number(code) + (i-2)*8; // for small letters |
| 75 | 72 | } |
| 76 | | if (i>=2 && i<=4 && shift==1 && ctrl==0) { |
| 73 | if (i>=2 && i<=4 && shift==0 && ctrl==0) { |
| 77 | 74 | key_code = 0x40 + row_number(code) + (i-2)*8; // for big letters |
| 78 | 75 | } |
| 79 | 76 | if (i>=2 && i<=4 && ctrl==1) { |
| 80 | 77 | key_code = 0x00 + row_number(code) + (i-2)*8; // for CTRL + letters |
| 81 | 78 | } |
| 82 | | if (i==5 && shift==0 && ctrl==0) { |
| 83 | | if (row_number(code) < 3 || row_number(code)==7) { |
| 79 | if (i==5 && shift==1 && ctrl==0) { |
| 80 | if (row_number(code)<7) { |
| 84 | 81 | key_code = 0x60 + row_number(code) + (i-2)*8; // for small letters |
| 85 | 82 | } else { |
| 86 | 83 | key_code = 0x40 + row_number(code) + (i-2)*8; // for signs it is switched |
| 87 | 84 | } |
| 88 | 85 | } |
| 89 | | if (i==5 && shift==1 && ctrl==0) { |
| 90 | | if (row_number(code) < 3 || row_number(code)==7) { |
| 86 | if (i==5 && shift==0 && ctrl==0) { |
| 87 | if (row_number(code)<7) { |
| 91 | 88 | key_code = 0x40 + row_number(code) + (i-2)*8; // for small letters |
| 92 | 89 | } else { |
| 93 | 90 | key_code = 0x60 + row_number(code) + (i-2)*8; // for signs it is switched |
| 94 | 91 | } |
| 95 | 92 | } |
| 96 | 93 | if (i==5 && shift==0 && ctrl==1) { |
| 97 | | key_code = 0x00 + row_number(code) + (i-2)*8; // for small letters + ctrl |
| 94 | key_code = 0x00 + row_number(code) + (i-2)*8; // for letters + ctrl |
| 98 | 95 | } |
| 99 | 96 | if (i==6) { |
| 100 | 97 | switch(row_number(code)) |