MCPcopy Create free account
hub / github.com/Lovrom8/RSMods / HandleKeyUp

Function HandleKeyUp

DLL/Keybindings.cpp:163–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

WndProcFunction · 0.85

Calls 3

DispatchCommandFunction · 0.85
UpdateSettingsFunction · 0.85
IsInTuningMenusFunction · 0.85

Tested by

no test coverage detected