src/mess/machine/apollo_kbd.c
| r15109 | r15110 | |
| 686 | 686 | { |
| 687 | 687 | int n_chars = 0; |
| 688 | 688 | UINT16 key_code = 0; |
| 689 | | UINT8 caps = BIT(ioport("keyboard4")->read(),0); |
| 690 | | UINT8 shift = BIT(ioport("keyboard4")->read(),1) | BIT(ioport("keyboard4")->read(),5); |
| 691 | | UINT8 ctrl = BIT(ioport("keyboard4")->read(),2); |
| 692 | | UINT8 numlock = BIT(ioport("keyboard4")->read(),6); |
| 689 | UINT8 caps = BIT(machine().root_device().ioport("keyboard4")->read(),0); |
| 690 | UINT8 shift = BIT(machine().root_device().ioport("keyboard4")->read(),1) | BIT(machine().root_device().ioport("keyboard4")->read(),5); |
| 691 | UINT8 ctrl = BIT(machine().root_device().ioport("keyboard4")->read(),2); |
| 692 | UINT8 numlock = BIT(machine().root_device().ioport("keyboard4")->read(),6); |
| 693 | 693 | UINT16 index; |
| 694 | 694 | |
| 695 | 695 | if (keyboard_is_german()) |
| r15109 | r15110 | |
| 803 | 803 | |
| 804 | 804 | for (x = 0; x < 0x80; x++) |
| 805 | 805 | { |
| 806 | | if (!(ioport(keynames[x / 32])->read() & (1 << (x % 32)))) |
| 806 | if (!(machine().root_device().ioport(keynames[x / 32])->read() & (1 << (x % 32)))) |
| 807 | 807 | { |
| 808 | 808 | // no key pressed |
| 809 | 809 | if (m_keyon[x] != 0) |