Previous 15994 Revisions Next

r12650 Wednesday 17th August, 2011 at 09:04:15 UTC by Miodrag Milanović
ioport.c: during emulation, detect keyboard only when enabled [Fabio Priuli]
[src/emu]ioport.c

src/emu/ioport.c
r12649r12650
39553955   {
39563956      for (field = port->first_field(); field != NULL; field = field->next())
39573957      {
3958         if (field->type == IPT_KEYBOARD)
3958         // if we are at init, check IPT_KEYBOARD for inputx_init
3959         if (!port->machine().input_port_data->safe_to_read && field->type == IPT_KEYBOARD)
39593960         {
39603961            have_keyboard = TRUE;
39613962            break;
39623963         }
3964
3965         // else, check if there is a keyboard and if such a keyboard is enabled
3966         if (field->type == IPT_KEYBOARD && input_condition_true(field->machine(), &field->condition, field->port().owner()))
3967         {
3968            have_keyboard = TRUE;
3969            break;
3970         }
39633971      }
39643972   }
39653973   return have_keyboard;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team