|
| CGUIGameControllerProvider (unsigned int portCount, int portIndex, const std::string &peripheralLocation, uint32_t alignment, int parentID) |
| Construct a game controller provider for the player's controller list in the Player Viewer dialog. More...
|
|
| CGUIGameControllerProvider (const CGUIGameControllerProvider &other) |
|
std::unique_ptr< IListProvider > | Clone () override |
| Create an instance of the derived class. Allows for polymorphic copies.
|
|
bool | Update (bool forceRefresh) override |
| Update the list content. More...
|
|
void | Fetch (std::vector< CGUIListItemPtr > &items) override |
| Fetch the current list of items. More...
|
|
bool | OnClick (const CGUIListItemPtr &item) override |
| Click event on an item. More...
|
|
bool | OnInfo (const CGUIListItemPtr &item) override |
| Open the info dialog for an item provided by this IListProvider. More...
|
|
bool | OnContextMenu (const CGUIListItemPtr &item) override |
| Open the context menu for an item provided by this IListProvider. More...
|
|
void | SetDefaultItem (int item, bool always) override |
| Set the default item to focus. For backwards compatibility. More...
|
|
int | GetDefaultItem () const override |
| The default item to focus. More...
|
|
bool | AlwaysFocusDefaultItem () const override |
| Whether to always focus the default item. More...
|
|
ControllerPtr | GetControllerProfile () const |
|
void | SetControllerProfile (ControllerPtr controllerProfile) |
|
unsigned int | GetPortCount () const |
|
void | SetPortCount (unsigned int portCount) |
|
int | GetPortIndex () const |
|
void | SetPortIndex (int portIndex) |
|
const std::string & | GetPeripheralLocation () const |
|
void | SetPeripheralLocation (const std::string &peripheralLocation) |
|
| IListProvider (int parentID) |
|
| IListProvider (const IListProvider &other)=default |
|
virtual bool | IsUpdating () const |
| Check whether the list provider is updating content. More...
|
|
virtual void | Reset () |
| Reset the current list of items. Derived classes may choose to ignore this.
|
|
virtual void | FreeResources (bool immediately) |
| Free all GUI resources allocated by the items. More...
|
|
virtual bool | OnPlay (const CGUIListItemPtr &item) |
| Play event on an item. More...
|
|
Controller list provider for the IAgentList control in the Player Viewer (GameAgents
) window.
This list provider populates a game controller list with items that show which emulator port a player's controller is connected to. Most items are empty to pad the controller to its correct position in the list.
The number of list items is determined by MAX_PORT_COUNT, plus an item for the "disconnected" icon. The list items are updated when the port count or port index changes.
An alignment can be specified to align the available ports to the left or right side of the list.