MCPcopy Create free account
hub / github.com/EasyRPG/Player / RefreshInputActionAllowed

Method RefreshInputActionAllowed

src/scene_settings.cpp:645–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643}
644
645void Scene_Settings::RefreshInputActionAllowed() {
646 auto button = static_cast<Input::InputButton>(options_window->GetFrame().arg);
647 auto mapping_count = Input::GetInputSource()->GetButtonMappings().Count(button);
648 input_mode_window->SetItemEnabled(0, mapping_count < Window_InputSettings::mapping_limit);
649 input_mode_window->SetItemEnabled(1, mapping_count > (Input::IsProtectedButton(button) ? 1 : 0));
650}
651
652bool Scene_Settings::SaveConfig(bool silent) {
653 auto cfg_out = Game_Config::GetGlobalConfigFileOutput();

Callers

nothing calls this directly

Calls 4

IsProtectedButtonFunction · 0.85
CountMethod · 0.80
SetItemEnabledMethod · 0.80
GetFrameMethod · 0.45

Tested by

no test coverage detected