@@ -13,7 +13,7 @@ using namespace RTE;
1313std::array<InputElements, 7 > SettingsInputMappingGUI::m_InputElementsUsedByMouse = {InputElements::INPUT_FIRE , InputElements::INPUT_PIEMENU_ANALOG , InputElements::INPUT_AIM , InputElements::INPUT_AIM_UP , InputElements::INPUT_AIM_DOWN , InputElements::INPUT_AIM_LEFT , InputElements::INPUT_AIM_RIGHT };
1414
1515SettingsInputMappingGUI::SettingsInputMappingGUI (GUIControlManager* parentControlManager) :
16- m_GUIControlManager(parentControlManager) {
16+ m_GUIControlManager(parentControlManager) {
1717 m_InputMappingSettingsBox = dynamic_cast <GUICollectionBox*>(m_GUIControlManager->GetControl (" CollectionBoxPlayerInputMapping" ));
1818 m_InputMappingSettingsBox->SetVisible (false );
1919
@@ -40,25 +40,22 @@ SettingsInputMappingGUI::SettingsInputMappingGUI(GUIControlManager* parentContro
4040 if (m_InputMapButton[i]) {
4141 // Optionally, initialize button text or state here if needed
4242 }
43- m_InputMapLabel[i]->SetText (c_InputElementNames[i]);
4443 }
4544
46- m_InputMapButton[i] = dynamic_cast <GUIButton*>(m_GUIControlManager->GetControl (" ButtonInputKey" + std::to_string (i + 1 )));
47- }
48- m_InputMappingCaptureBox = dynamic_cast <GUICollectionBox*>(m_GUIControlManager->GetControl (" CollectionBoxInputCapture" ));
49- m_InputMappingCaptureBox->SetVisible (false );
45+ m_InputMappingCaptureBox = dynamic_cast <GUICollectionBox*>(m_GUIControlManager->GetControl (" CollectionBoxInputCapture" ));
46+ m_InputMappingCaptureBox->SetVisible (false );
5047
51- GUICollectionBox* settingsRootBox = dynamic_cast <GUICollectionBox*>(m_GUIControlManager->GetControl (" CollectionBoxSettingsBase" ));
52- m_InputMappingCaptureBox->SetPositionAbs (settingsRootBox->GetXPos () + ((settingsRootBox->GetWidth () - m_InputMappingCaptureBox->GetWidth()) / 2), settingsRootBox->GetYPos() + ((settingsRootBox->GetHeight () - m_InputMappingCaptureBox->GetHeight()) / 2));
48+ GUICollectionBox* settingsRootBox = dynamic_cast <GUICollectionBox*>(m_GUIControlManager->GetControl (" CollectionBoxSettingsBase" ));
49+ m_InputMappingCaptureBox->SetPositionAbs (settingsRootBox->GetXPos () + ((settingsRootBox->GetWidth () - m_InputMappingCaptureBox->GetWidth ()) / 2 ), settingsRootBox->GetYPos () + ((settingsRootBox->GetHeight () - m_InputMappingCaptureBox->GetHeight ()) / 2 ));
5350
54- m_InputElementCapturingInputNameLabel = dynamic_cast <GUIButton*>(m_GUIControlManager->GetControl (" ButtonLabelInputMappingName" ));
51+ m_InputElementCapturingInputNameLabel = dynamic_cast <GUIButton*>(m_GUIControlManager->GetControl (" ButtonLabelInputMappingName" ));
5552
56- m_InputConfigWizardMenu = std::make_unique<SettingsInputMappingWizardGUI>(parentControlManager);
53+ m_InputConfigWizardMenu = std::make_unique<SettingsInputMappingWizardGUI>(parentControlManager);
5754
58- m_ConfiguringPlayer = Players::NoPlayer;
59- m_ConfiguringPlayerInputScheme = nullptr ;
60- m_ConfiguringManually = false ;
61- m_InputElementCapturingInput = InputElements::INPUT_COUNT ;
55+ m_ConfiguringPlayer = Players::NoPlayer;
56+ m_ConfiguringPlayerInputScheme = nullptr ;
57+ m_ConfiguringManually = false ;
58+ m_InputElementCapturingInput = InputElements::INPUT_COUNT ;
6259}
6360
6461bool SettingsInputMappingGUI::IsEnabled () const {
0 commit comments