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

#include <GameServices.h>

Public Member Functions

 CGameServices (CControllerManager &controllerManager, RETRO::CGUIGameRenderManager &renderManager, PERIPHERALS::CPeripherals &peripheralManager, const CProfileManager &profileManager, CInputManager &inputManager)
 
 ~CGameServices ()
 
ControllerPtr GetController (const std::string &controllerId)
 
ControllerPtr GetDefaultController ()
 
ControllerPtr GetDefaultKeyboard ()
 
ControllerPtr GetDefaultMouse ()
 
ControllerVector GetControllers ()
 
std::string TranslateFeature (const std::string &controllerId, const std::string &featureName)
 Translate a feature on a controller into its localized name.
 
std::string GetSavestatesFolder () const
 
CGameSettingsGameSettings ()
 
RETRO::CGUIGameRenderManagerGameRenderManager ()
 
CAgentInputAgentInput ()
 

Constructor & Destructor Documentation

◆ CGameServices()

CGameServices::CGameServices ( CControllerManager & controllerManager,
RETRO::CGUIGameRenderManager & renderManager,
PERIPHERALS::CPeripherals & peripheralManager,
const CProfileManager & profileManager,
CInputManager & inputManager )

◆ ~CGameServices()

CGameServices::~CGameServices ( )
default

Member Function Documentation

◆ AgentInput()

CAgentInput & KODI::GAME::CGameServices::AgentInput ( )
inline

◆ GameRenderManager()

RETRO::CGUIGameRenderManager & KODI::GAME::CGameServices::GameRenderManager ( )
inline

◆ GameSettings()

CGameSettings & KODI::GAME::CGameServices::GameSettings ( )
inline

◆ GetController()

ControllerPtr CGameServices::GetController ( const std::string & controllerId)

◆ GetControllers()

ControllerVector CGameServices::GetControllers ( )

◆ GetDefaultController()

ControllerPtr CGameServices::GetDefaultController ( )

◆ GetDefaultKeyboard()

ControllerPtr CGameServices::GetDefaultKeyboard ( )

◆ GetDefaultMouse()

ControllerPtr CGameServices::GetDefaultMouse ( )

◆ GetSavestatesFolder()

std::string CGameServices::GetSavestatesFolder ( ) const

◆ TranslateFeature()

std::string CGameServices::TranslateFeature ( const std::string & controllerId,
const std::string & featureName )

Translate a feature on a controller into its localized name.

Parameters
controllerIdThe controller ID that the feature belongs to
featureNameThe feature name
Returns
The localized feature name, or empty if the controller or feature doesn't exist

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