| 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 | { |
nothing calls this directly
no test coverage detected