11 #include "IConfigurationWindow.h" 12 #include "games/GameTypes.h" 13 #include "games/controllers/ControllerTypes.h" 14 #include "games/controllers/input/PhysicalFeature.h" 37 void Load(
const ControllerPtr& controller)
override;
38 void OnFocus(
unsigned int buttonIndex)
override {}
39 void OnSelect(
unsigned int buttonIndex)
override;
44 void CleanupButtons(
void);
49 std::string groupName;
50 std::vector<CPhysicalFeature> features;
55 bool bIsVirtualKey =
false;
57 std::vector<FeatureGroup> GetFeatureGroups(
const std::vector<CPhysicalFeature>& features)
const;
58 std::vector<CGUIButtonControl*> GetButtons(
const std::vector<CPhysicalFeature>& features,
59 unsigned int startIndex);
60 CGUIButtonControl* GetSelectKeyButton(
const std::vector<CPhysicalFeature>& features,
61 unsigned int buttonIndex);
65 unsigned int m_buttonCount = 0;
72 GameClientPtr m_gameClient;
73 ControllerPtr m_controller;
void OnSelect(unsigned int buttonIndex) override
The specified GUI button has been selected.
Definition: GUIFeatureList.cpp:144
bool HasButton(JOYSTICK::FEATURE_TYPE type) const override
Check if the feature type has any buttons in the GUI.
Definition: GUIFeatureList.cpp:255
A wizard to direct user input.
Definition: IConfigurationWindow.h:221
void Load(const ControllerPtr &controller) override
Load the features for the specified controller.
Definition: GUIFeatureList.cpp:79
FEATURE_TYPE
Types of features used in the joystick library.
Definition: JoystickTypes.h:49
A list populated by the controller's features.
Definition: IConfigurationWindow.h:99
list of controls that is scrollable
Definition: GUIControlGroupList.h:22
Definition: GUILabelControl.h:24
bool Initialize() override
Initialize the resource.
Definition: GUIFeatureList.cpp:48
Controller configuration window.
Definition: AudioDecoder.h:18
Definition: GUIImage.h:27
void OnFocus(unsigned int buttonIndex) override
Focus has been set to the specified GUI button.
Definition: GUIFeatureList.h:38
Definition: GUIWindow.h:58
void Deinitialize() override
Deinitialize the resource.
Definition: GUIFeatureList.cpp:69
Definition: GUIFeatureList.h:27