| 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 |