| 210 | } |
| 211 | |
| 212 | void Input::ResetNonSystemKeys() { |
| 213 | auto buttons = source->GetButtonMappings(); |
| 214 | auto& key_states = DisplayUi->GetKeyStates(); |
| 215 | |
| 216 | for (auto& bm: buttons) { |
| 217 | if (IsSystemButton(bm.first)) { |
| 218 | continue; |
| 219 | } |
| 220 | |
| 221 | triggered[bm.first] = false; |
| 222 | repeated[bm.first] = false; |
| 223 | released[bm.first] = false; |
| 224 | press_time[bm.first] = 0; |
| 225 | key_states[bm.second] = false; |
| 226 | } |
| 227 | |
| 228 | dir4 = Direction::NONE; |
| 229 | dir8 = Direction::NONE; |
| 230 | } |
| 231 | |
| 232 | void Input::ResetDefaultMapping(Input::InputButton button) { |
| 233 | auto def_mappings = GetDefaultButtonMappings(); |
nothing calls this directly
no test coverage detected