| 175 | } |
| 176 | |
| 177 | void Input::UpdateSystem() { |
| 178 | source->UpdateSystem(); |
| 179 | auto& pressed_buttons = source->GetPressedButtons(); |
| 180 | |
| 181 | // Check button states |
| 182 | for (unsigned i = 0; i < BUTTON_COUNT; ++i) { |
| 183 | if (IsSystemButton(static_cast<InputButton>(i))) { |
| 184 | bool pressed = pressed_buttons[i]; |
| 185 | UpdateButton(i, pressed); |
| 186 | } |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | void Input::ResetKeys() { |
| 191 | triggered.reset(); |
nothing calls this directly
no test coverage detected