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

Function InitializeCommands

DLL/Keybindings.cpp:243–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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"] =

Callers 1

MainThreadFunction · 0.85

Calls 6

ToggleLoftFunction · 0.85
IsInLASPlayingModesFunction · 0.85
HandleMutePlayer1Function · 0.85
HandleMutePlayer2Function · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected