Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::GAME::CGUIControllerList Class Reference

#include <GUIControllerList.h>

Inheritance diagram for KODI::GAME::CGUIControllerList:
KODI::GAME::IControllerList

Public Member Functions

 CGUIControllerList (CGUIWindow *window, IFeatureList *featureList, GameClientPtr gameClient, std::string controllerId)
 Create a GUI controller list.
 
 ~CGUIControllerList () override
 
bool Initialize () override
 Initialize the resource.
 
void Deinitialize () override
 Deinitialize the resource.
 
bool Refresh (const std::string &controllerId) override
 Refresh the contents of the list.
 
void OnFocus (unsigned int controllerIndex) override
 
void OnSelect (unsigned int controllerIndex) override
 The specified controller has been selected.
 
int GetFocusedController () const override
 Get the index of the focused controller.
 
void ResetController () override
 Reset the focused controller.
 
- Public Member Functions inherited from KODI::GAME::IControllerList
virtual ~IControllerList ()=default
 

Constructor & Destructor Documentation

◆ CGUIControllerList()

CGUIControllerList::CGUIControllerList ( CGUIWindow * window,
IFeatureList * featureList,
GameClientPtr gameClient,
std::string controllerId )

Create a GUI controller list.

Parameters
windowThe GUI window handle
featureListThe controller interface for the feature list
gameClientA gameclient used to filter controllers
controllerIdA controller ID used to filter controllers (only the specified controller will be shown, or the default controller if the specified controller isn't installed)

◆ ~CGUIControllerList()

KODI::GAME::CGUIControllerList::~CGUIControllerList ( )
inlineoverride

Member Function Documentation

◆ Deinitialize()

void CGUIControllerList::Deinitialize ( )
overridevirtual

Deinitialize the resource.

Implements KODI::GAME::IControllerList.

◆ GetFocusedController()

int KODI::GAME::CGUIControllerList::GetFocusedController ( ) const
inlineoverridevirtual

Get the index of the focused controller.

Returns
The index of the focused controller, or -1 if no controller has been focused yet

Implements KODI::GAME::IControllerList.

◆ Initialize()

bool CGUIControllerList::Initialize ( )
overridevirtual

Initialize the resource.

Returns
true if the resource is initialized and can be used false if the resource failed to initialize and must not be used

Implements KODI::GAME::IControllerList.

◆ OnFocus()

void CGUIControllerList::OnFocus ( unsigned int controllerIndex)
overridevirtual
Todo
Activate controller for all game controller controls

Implements KODI::GAME::IControllerList.

◆ OnSelect()

void CGUIControllerList::OnSelect ( unsigned int controllerIndex)
overridevirtual

The specified controller has been selected.

Parameters
controllerIndexThe index of the controller being selected

Implements KODI::GAME::IControllerList.

◆ Refresh()

bool CGUIControllerList::Refresh ( const std::string & controllerId)
overridevirtual

Refresh the contents of the list.

Parameters
controllerIdThe controller to focus, or empty to leave focus unchanged
Returns
True if the list was changed

Implements KODI::GAME::IControllerList.

◆ ResetController()

void CGUIControllerList::ResetController ( )
overridevirtual

Reset the focused controller.

Todo
Choose peripheral

Implements KODI::GAME::IControllerList.


The documentation for this class was generated from the following files: