示例#1
0
文件: WMode.cpp 项目: hwwh1999/bwapi
bool SendHotkey(BW::dlgEvent *pEvent)
{
    BW::dialog *dlg = BW::BWDATA::EventDialogs[pEvent->wNo];
    if ( dlg && dlg->pfcnInteract(dlg, pEvent) )
        return true;

    dlg = (*BW::BWDATA::DialogList);
    while ( dlg )
    {
        if ( dlg->pfcnInteract(dlg, pEvent) )
            return true;
        dlg = dlg->next();
    }
    return false;
}
示例#2
0
文件: WMode.cpp 项目: Maiven/bwapi
bool SendHotkey(BW::dlgEvent *pEvent)
{
#ifndef SHADOW_BROODWAR
  BW::dialog *dlg = BW::BWDATA::EventDialogs[pEvent->wNo];
  if ( dlg && dlg->pfcnInteract(dlg, pEvent) )
    return true;

  dlg = BW::BWDATA::DialogList;
  while ( dlg )
  {
    if ( dlg->pfcnInteract(dlg, pEvent) )
      return true;
    dlg = dlg->next();
  }
#endif
  return false;
}