MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / check

Method check

src/Core/Input/InputAction.cpp:138–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 bool InputAction::check() const
139 {
140 if (!m_enabled)
141 return false;
142 for (const InputCondition& combination : m_conditions)
143 {
144 if (combination.check())
145 {
146 if (m_state)
147 {
148 if (m_repeat.over())
149 {
150 return true;
151 }
152 }
153 }
154 }
155 return false;
156 }
157} // namespace obe::Input

Callers 1

updateMethod · 0.45

Calls 1

overMethod · 0.80

Tested by

no test coverage detected