| 161 | } |
| 162 | |
| 163 | void HandleKeyUp(WPARAM keyPressed) |
| 164 | { |
| 165 | if (!GameState::GameLoaded) return; // Game must not be on the startup videos or it will crash |
| 166 | DispatchCommand(keyPressed, keyUpCommands); |
| 167 | |
| 168 | // Control + A. Force us to read the Settings from the INI again, to renew our cached values. |
| 169 | if (keyPressed == 0x41 && (GetAsyncKeyState(VK_CONTROL) & 0x8000)) { |
| 170 | Settings::UpdateSettings(); |
| 171 | LOG_INFO("Triggered Setting Update" << std::endl); |
| 172 | } |
| 173 | |
| 174 | // Auto Tuning via MIDI mod. |
| 175 | // Checks if we are in a tuning menu, and the user tried to skip tuning. |
| 176 | if (Settings::ReturnSettingValue("AutoTuneForSongWhen") == "manual" && GameState::Menus::IsInTuningMenus() && keyPressed == VK_DELETE) { |
| 177 | Midi::userWantsToUseAutoTuning = true; |
| 178 | } |
| 179 | |
| 180 | if (D3DHooks::debug && keyPressed == VK_BACK) { |
| 181 | Menu::menuEnabled = !Menu::menuEnabled; |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | void HandleKeyDown(WPARAM keyPressed) |
| 186 | { |
no test coverage detected