MCPcopy Create free account
hub / github.com/EasyRPG/Player / UpdateSystem

Method UpdateSystem

src/input.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void 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
190void Input::ResetKeys() {
191 triggered.reset();

Callers

nothing calls this directly

Calls 2

IsSystemButtonFunction · 0.85
UpdateButtonFunction · 0.85

Tested by

no test coverage detected