src/mess/machine/poly88.c
| r4754 | r4755 | |
| 41 | 41 | code = input_port_read(machine, keynames[i]); |
| 42 | 42 | if (code != 0) |
| 43 | 43 | { |
| 44 | | if (i<2 && shift==0) { |
| 44 | if (i==0 && shift==0) { |
| 45 | 45 | key_code = 0x30 + row_number(code) + 8*i; // for numbers and some signs |
| 46 | 46 | } |
| 47 | | if (i<2 && shift==1) { |
| 47 | if (i==0 && shift==1) { |
| 48 | 48 | key_code = 0x20 + row_number(code) + 8*i; // for shifted numbers |
| 49 | 49 | } |
| 50 | if (i==1 && shift==0) { |
| 51 | if (row_number(code) < 4) { |
| 52 | key_code = 0x30 + row_number(code) + 8*i; // for numbers and some signs |
| 53 | } else { |
| 54 | key_code = 0x20 + row_number(code) + 8*i; // for numbers and some signs |
| 55 | } |
| 56 | } |
| 57 | if (i==1 && shift==1) { |
| 58 | if (row_number(code) < 4) { |
| 59 | key_code = 0x20 + row_number(code) + 8*i; // for numbers and some signs |
| 60 | } else { |
| 61 | key_code = 0x30 + row_number(code) + 8*i; // for numbers and some signs |
| 62 | } |
| 63 | } |
| 64 | if (i==1 && shift==1) { |
| 65 | key_code = 0x20 + row_number(code) + 8*i; // for shifted numbers |
| 66 | } |
| 50 | 67 | if (i>=2 && i<=4 && shift==0 && ctrl==0) { |
| 51 | 68 | key_code = 0x60 + row_number(code) + (i-2)*8; // for small letters |
| 52 | 69 | } |