Rebinding controls updates the input helper display. Release Build 7202.
This commit is contained in:
@@ -654,6 +654,9 @@ void InputListener::Update(){
|
||||
GPButtons releasedButton=olc::GPButtons(button);
|
||||
if(gamepad->getButton(releasedButton).bReleased){
|
||||
InputGroup::menuNamesToInputGroups[Menu::menus[NEW_INPUT]->S(A::KEYBIND)]->SetNewPrimaryKeybind(Input{CONTROLLER,int(button)});
|
||||
for(auto&[menuType,menu]:Menu::menus){
|
||||
menu->helpDisplay.Initialize(menu->inputGroups);
|
||||
}
|
||||
Menu::alreadyClicked=true;
|
||||
Menu::CloseMenu();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user