Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
A list populated by controller ports for the port setup window. More...
#include <IPortList.h>
Public Member Functions | |
virtual | ~IPortList ()=default |
virtual void | OnWindowLoaded ()=0 |
Callback when the GUI window is loaded. | |
virtual void | OnWindowUnload ()=0 |
Callback when the GUI window is unloaded. | |
virtual bool | Initialize (GameClientPtr gameClient)=0 |
Initialize resources. | |
virtual void | Deinitialize ()=0 |
Deinitialize resources. | |
virtual bool | HasControl (int controlId)=0 |
Query if a control with the given ID belongs to this list. | |
virtual int | GetCurrentControl ()=0 |
Query the ID of the current control in this list. | |
virtual void | Refresh ()=0 |
Refresh the contents of the list. | |
virtual void | FrameMove ()=0 |
Callback when a frame is rendered by the GUI. | |
virtual void | SetFocused ()=0 |
The port list has been focused in the GUI. | |
virtual bool | OnSelect ()=0 |
The port list has been selected. | |
virtual void | ResetPorts ()=0 |
Reset the ports to their game add-on's default configuration. | |
A list populated by controller ports for the port setup window.
The port setup window presents a list of ports and their attached controllers.
The label2 of each port is the currently-connected controller. The user selects from all controllers that the port accepts (as given by the game-addon's topology.xml
file).
The controller topology is stored as a generic tree. Here we apply game logic to simplify controller selection.
|
virtualdefault |
|
pure virtual |
Deinitialize resources.
Implemented in KODI::GAME::CGUIPortList.
|
pure virtual |
Callback when a frame is rendered by the GUI.
Implemented in KODI::GAME::CGUIPortList.
|
pure virtual |
Query the ID of the current control in this list.
Implemented in KODI::GAME::CGUIPortList.
Query if a control with the given ID belongs to this list.
Implemented in KODI::GAME::CGUIPortList.
|
pure virtual |
Initialize resources.
gameClient | The game client providing the ports |
Implemented in KODI::GAME::CGUIPortList.
|
pure virtual |
The port list has been selected.
True if a control was active, false of all controls were inactive
Implemented in KODI::GAME::CGUIPortList.
|
pure virtual |
Callback when the GUI window is loaded.
Implemented in KODI::GAME::CGUIPortList.
|
pure virtual |
Callback when the GUI window is unloaded.
Implemented in KODI::GAME::CGUIPortList.
|
pure virtual |
Refresh the contents of the list.
Implemented in KODI::GAME::CGUIPortList.
|
pure virtual |
Reset the ports to their game add-on's default configuration.
Implemented in KODI::GAME::CGUIPortList.
|
pure virtual |
The port list has been focused in the GUI.
Implemented in KODI::GAME::CGUIPortList.