xbmc
Public Member Functions | List of all members
KODI::GAME::CControllerManager Class Reference

Public Member Functions

ControllerPtr GetController (const std::string &controllerId)
 Get a controller. More...
 
ControllerPtr GetDefaultController ()
 Get the default controller. More...
 
ControllerPtr GetDefaultKeyboard ()
 Get the default keyboard. More...
 
ControllerPtr GetDefaultMouse ()
 Get the default mouse. More...
 
ControllerVector GetControllers ()
 Get installed controllers. More...
 

Member Function Documentation

◆ GetController()

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

Get a controller.

A cache is used to avoid reloading controllers each time they are requested.

Parameters
controllerIdThe controller's ID
Returns
The controller, or empty if the controller isn't installed or can't be loaded

◆ GetControllers()

ControllerVector CControllerManager::GetControllers ( )

Get installed controllers.

Returns
The installed controllers that loaded successfully

◆ GetDefaultController()

ControllerPtr CControllerManager::GetDefaultController ( )

Get the default controller.

Returns
The default controller, or empty if the controller failed to load

◆ GetDefaultKeyboard()

ControllerPtr CControllerManager::GetDefaultKeyboard ( )

Get the default keyboard.

Returns
The keyboard controller, or empty if the controller failed to load

◆ GetDefaultMouse()

ControllerPtr CControllerManager::GetDefaultMouse ( )

Get the default mouse.

Returns
The mouse controller, or empty if the controller failed to load

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