MCPcopy Create free account
hub / github.com/bwapi/bwapi / doEvent

Method doEvent

bwapi/BWAPI/Source/BW/Dialog.cpp:439–452  ·  view source on GitHub ↗

-------------------------------------------------- EVENTS ------------------------------------------------- --------------------- EVENT ---------------------

Source from the content-addressed store, hash-verified

437// -------------------------------------------------- EVENTS -------------------------------------------------
438 // --------------------- EVENT ---------------------
439 bool dialog::doEvent(u16 wEvtNum, u32 dwUser, u16 wSelect, u16 wVirtKey)
440 {
441 if ( !this || !this->pfcnInteract )
442 return false;
443
444 dlgEvent evt;
445 evt.cursor.x = static_cast<u16>(BW::BWDATA::Mouse.x);
446 evt.cursor.y = static_cast<u16>(BW::BWDATA::Mouse.y);
447 evt.wVirtKey = wVirtKey;
448 evt.wSelection = wSelect;
449 evt.wNo = wEvtNum;
450 evt.dwUser = dwUser;
451 return this->pfcnInteract(this, &evt);
452 }
453 // ----------------- DEFAULT INTERACT --------------
454 /*bool dialog::defaultInteract(BW::dlgEvent *pEvent)
455 {

Callers 7

showMethod · 0.95
hideMethod · 0.95
activateMethod · 0.95
updateMethod · 0.95
initializeMethod · 0.95
setSelectedIndexMethod · 0.95
removeListEntryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected