Previous 15994 Revisions Next

r4755 Tuesday 19th May, 2009 at 14:34:28 UTC by Miodrag Milanović
[POLY88] Little fix to keyboard
[src/mess/machine]poly88.c

src/mess/machine/poly88.c
r4754r4755
4141      code =    input_port_read(machine, keynames[i]);
4242      if (code != 0)
4343      {
44         if (i<2 && shift==0) {
44         if (i==0 && shift==0) {
4545            key_code = 0x30 + row_number(code) + 8*i; // for numbers and some signs
4646         }
47         if (i<2 && shift==1) {
47         if (i==0 && shift==1) {
4848            key_code = 0x20 + row_number(code) + 8*i; // for shifted numbers
4949         }
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         }
5067         if (i>=2 && i<=4 && shift==0 && ctrl==0) {
5168            key_code = 0x60 + row_number(code) + (i-2)*8; // for small letters
5269         }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team