示例#1
0
void ogc_input__update(void)
{
  int i;
  int num = 0;

  /* update inputs */
  PAD_ScanPads();

#ifdef HW_RVL
  WPAD_ScanPads();
  if (WPAD_ButtonsHeld(0) & WPAD_BUTTON_HOME)
  {
    /* do additional check here to prevent bad controller configuration */
    ConfigRequested = 1;
    return;
  }
#endif

  for (i=0; i<MAX_DEVICES; i++)
  {
    input.pad[i] = 0;

    if (input.dev[i] != NO_DEVICE)
    {
      if (config.input[num].device == 0)
        pad_update(config.input[num].port, i);

#ifdef HW_RVL
      else if (config.input[num].device > 0)
        wpad_update(config.input[num].port,i, config.input[num].device - 1);
#endif
      num ++;
    }
  }
}
示例#2
0
void ogc_input__update(void)
{
  /* reset inputs */
  coleco.keypad[0] |= 0xf0;
  coleco.keypad[1] |= 0xf0;
  input.pad[0] = 0;
  input.pad[1] = 0;
  input.system = 0;

  pad_update();
#ifdef HW_RVL
  wpad_update();
#endif
}
示例#3
0
int osd_keyboard(void)
{
  psp_update_keys();

# if 0 //LUDO: TO_BE_DONE !

  /* switch autofire */
  autofireon ^= 1;

  /* update inputs */
  pad_update();
#ifdef HW_RVL
  wpad_update();
#endif
  return cart_reload;
# else
  return 0;
# endif
}