@@ -13,7 +13,7 @@ using namespace RTE;
13
13
std::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};
14
14
15
15
SettingsInputMappingGUI::SettingsInputMappingGUI (GUIControlManager* parentControlManager) :
16
- m_GUIControlManager(parentControlManager) {
16
+ m_GUIControlManager(parentControlManager) {
17
17
m_InputMappingSettingsBox = dynamic_cast <GUICollectionBox*>(m_GUIControlManager->GetControl (" CollectionBoxPlayerInputMapping" ));
18
18
m_InputMappingSettingsBox->SetVisible (false );
19
19
@@ -40,25 +40,22 @@ SettingsInputMappingGUI::SettingsInputMappingGUI(GUIControlManager* parentContro
40
40
if (m_InputMapButton[i]) {
41
41
// Optionally, initialize button text or state here if needed
42
42
}
43
- m_InputMapLabel[i]->SetText (c_InputElementNames[i]);
44
43
}
45
44
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 );
50
47
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 ));
53
50
54
- m_InputElementCapturingInputNameLabel = dynamic_cast <GUIButton*>(m_GUIControlManager->GetControl (" ButtonLabelInputMappingName" ));
51
+ m_InputElementCapturingInputNameLabel = dynamic_cast <GUIButton*>(m_GUIControlManager->GetControl (" ButtonLabelInputMappingName" ));
55
52
56
- m_InputConfigWizardMenu = std::make_unique<SettingsInputMappingWizardGUI>(parentControlManager);
53
+ m_InputConfigWizardMenu = std::make_unique<SettingsInputMappingWizardGUI>(parentControlManager);
57
54
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;
62
59
}
63
60
64
61
bool SettingsInputMappingGUI::IsEnabled () const {
0 commit comments