| 241 | } |
| 242 | |
| 243 | void InitializeCommands() |
| 244 | { |
| 245 | keyUpCommands["ToggleLoftKey"] = |
| 246 | { |
| 247 | [] { return Settings::ReturnSettingValue("ToggleLoftEnabled") == "on"; }, |
| 248 | [] { Loft::ToggleLoft(); }, |
| 249 | "Toggle Loft" |
| 250 | }; |
| 251 | keyUpCommands["ShowSongTimerKey"] = |
| 252 | { |
| 253 | [] { return Settings::ReturnSettingValue("ShowSongTimerEnabled") == "on"; }, |
| 254 | [] { D3DHooks::showSongTimerOnScreen = !D3DHooks::showSongTimerOnScreen; }, |
| 255 | "Show Song Timer" |
| 256 | }; |
| 257 | keyUpCommands["ForceReEnumerationKey"] = |
| 258 | { |
| 259 | [] { return Settings::ReturnSettingValue("ForceReEnumerationEnabled") == "manual"; }, |
| 260 | [] { Enumeration::ForceEnumeration(); }, |
| 261 | "Force Enumeration" |
| 262 | }; |
| 263 | keyUpCommands["RainbowStringsKey"] = |
| 264 | { |
| 265 | [] { return Settings::ReturnSettingValue("RainbowStringsEnabled") == "on"; }, |
| 266 | [] { ERMode::ToggleRainbowMode(); |
| 267 | if (!ERMode::RainbowEnabled) ERMode::ResetAllStrings(); }, |
| 268 | "Rainbow Strings" |
| 269 | }; |
| 270 | keyUpCommands["TuningOffsetKey"] = |
| 271 | { |
| 272 | [] { return Settings::ReturnSettingValue("AutoTuneForSong") == "on"; }, |
| 273 | HandleTuningOffset, |
| 274 | "" |
| 275 | }; |
| 276 | keyUpCommands["RewindKey"] = |
| 277 | { |
| 278 | [] { return Settings::ReturnSettingValue("AllowRewind") == "on" && GameState::Menus::IsInLASPlayingModes(); }, |
| 279 | HandleRewind, |
| 280 | "" |
| 281 | }; |
| 282 | keyDownCommands["LoopStartKey"] = |
| 283 | { |
| 284 | [] { return Settings::ReturnSettingValue("AllowLooping") == "on" && GameState::Menus::IsInModesWithAllowedFastRiffRepeater(); }, |
| 285 | SetLoopStartingPoint, |
| 286 | "Loop Start Point Set" |
| 287 | }; |
| 288 | keyDownCommands["LoopEndKey"] = |
| 289 | { |
| 290 | [] { return Settings::ReturnSettingValue("AllowLooping") == "on" && GameState::Menus::IsInModesWithAllowedFastRiffRepeater(); }, |
| 291 | SetLoopEndingPoint, |
| 292 | "Loop End Point Set" |
| 293 | }; |
| 294 | keyUpCommands["RemoveLyricsKey"] = |
| 295 | { |
| 296 | [] { return Settings::ReturnSettingValue("RemoveLyricsWhen") == "manual"; }, |
| 297 | [] { D3DHooks::RemoveLyrics = !D3DHooks::RemoveLyrics; }, |
| 298 | "Remove Lyrics" |
| 299 | }; |
| 300 | keyUpCommands["ToggleExtendedRangeKey"] = |
no test coverage detected