MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GuiIsSelected

Method GuiIsSelected

TombEngine/Game/gui.cpp:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169
170 bool GuiController::GuiIsSelected(bool onClicked) const
171 {
172 if (onClicked)
173 {
174 return ((IsClicked(In::Select) || IsClicked(In::Action)) && CanSelect());
175 }
176 else
177 {
178 return ((IsReleased(In::Select) || IsReleased(In::Action)) && CanSelect());
179 }
180 }
181
182 bool GuiController::GuiIsDeselected() const
183 {

Callers

nothing calls this directly

Calls 2

IsClickedFunction · 0.85
IsReleasedFunction · 0.85

Tested by

no test coverage detected