Previous 15994 Revisions Next

r15110 Monday 7th May, 2012 at 09:20:15 UTC by Miodrag Milanović
fixed apollo regression (no whatsnew)
[src/mess/machine]apollo_kbd.c

src/mess/machine/apollo_kbd.c
r15109r15110
686686{
687687   int n_chars = 0;
688688   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);
693693   UINT16 index;
694694
695695   if (keyboard_is_german())
r15109r15110
803803
804804   for (x = 0; x < 0x80; x++)
805805   {
806      if (!(ioport(keynames[x / 32])->read() & (1 << (x % 32))))
806      if (!(machine().root_device().ioport(keynames[x / 32])->read() & (1 << (x % 32))))
807807      {
808808         // no key pressed
809809         if (m_keyon[x] != 0)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team