11 #include "IConfigurationWindow.h" 12 #include "games/GameTypes.h" 13 #include "games/controllers/ControllerTypes.h" 14 #include "games/controllers/input/PhysicalFeature.h" 15 #include "input/joysticks/JoystickTypes.h" 39 bool HasButton(JOYSTICK::FEATURE_TYPE type)
const override;
41 void OnFocus(
unsigned int buttonIndex)
override {}
42 void OnSelect(
unsigned int buttonIndex)
override;
47 void CleanupButtons(
void);
52 std::string groupName;
53 std::vector<CPhysicalFeature> features;
58 bool bIsVirtualKey =
false;
60 std::vector<FeatureGroup> GetFeatureGroups(
const std::vector<CPhysicalFeature>& features)
const;
61 std::vector<CGUIButtonControl*> GetButtons(
const std::vector<CPhysicalFeature>& features,
62 unsigned int startIndex);
63 CGUIButtonControl* GetSelectKeyButton(
const std::vector<CPhysicalFeature>& features,
64 unsigned int buttonIndex);
68 unsigned int m_buttonCount = 0;
72 CGUIImage* m_guiFeatureSeparator =
nullptr;
void OnSelect(unsigned int buttonIndex) override
The specified GUI button has been selected.
Definition: GUIFeatureList.cpp:138
bool HasButton(JOYSTICK::FEATURE_TYPE type) const override
Check if the feature type has any buttons in the GUI.
Definition: GUIFeatureList.cpp:249
A wizard to direct user input.
Definition: IConfigurationWindow.h:240
void Load(const ControllerPtr &controller) override
Load the features for the specified controller.
Definition: GUIFeatureList.cpp:73
A list populated by the controller's features.
Definition: IConfigurationWindow.h:110
list of controls that is scrollable
Definition: GUIControlGroupList.h:28
Definition: GUILabelControl.h:24
bool Initialize() override
Initialize the resource.
Definition: GUIFeatureList.cpp:42
Definition: AudioDecoder.h:18
std::shared_ptr< CController > ControllerPtr
Smart pointer to a game controller (CController)
Definition: ControllerTypes.h:25
std::shared_ptr< CGameClient > GameClientPtr
Smart pointer to a game client (CGameClient)
Definition: GameTypes.h:29
Definition: GUIImage.h:27
void OnFocus(unsigned int buttonIndex) override
Focus has been set to the specified GUI button.
Definition: GUIFeatureList.h:41
Definition: GUIWindow.h:58
void Deinitialize() override
Deinitialize the resource.
Definition: GUIFeatureList.cpp:63
Definition: GUIFeatureList.h:30