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

Method getMousePosition

bwapi/BWAPI/Source/BWAPI/GameImpl.cpp:145–150  ·  view source on GitHub ↗

------------------------------------------- GET MOUSE POSITION -------------------------------------------

Source from the content-addressed store, hash-verified

143 }
144 //------------------------------------------- GET MOUSE POSITION -------------------------------------------
145 BWAPI::Position GameImpl::getMousePosition() const
146 {
147 if ( !this->isFlagEnabled(BWAPI::Flag::UserInput) )
148 return BWAPI::Positions::Unknown;
149 return BWAPI::Position(BW::BWDATA::Mouse.x, BW::BWDATA::Mouse.y);
150 }
151 //--------------------------------------------- GET MOUSE STATE --------------------------------------------
152 bool GameImpl::getMouseState(MouseButton button) const
153 {

Callers 5

updateOverlaysMethod · 0.95
onSendTextMethod · 0.45
updateSharedMemoryMethod · 0.45
onFrameMethod · 0.45
onStartMethod · 0.45

Calls 2

isFlagEnabledMethod · 0.95
PositionClass · 0.50

Tested by 2

onFrameMethod · 0.36
onStartMethod · 0.36