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

Method CanSelect

TombEngine/Game/gui.cpp:187–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 bool GuiController::CanSelect() const
188 {
189 // Holding Deselect safely cancels select actions.
190 if (IsHeld(In::Deselect))
191 return false;
192
193 // Avoid Select or Action release interference when entering inventory.
194 if (GetActionTimeActive(In::Select) < TimeInMenu && GetActionTimeActive(In::Action) < TimeInMenu)
195 return true;
196
197 return false;
198 }
199
200 bool GuiController::CanDeselect() const
201 {

Callers

nothing calls this directly

Calls 2

IsHeldFunction · 0.85
GetActionTimeActiveFunction · 0.50

Tested by

no test coverage detected