Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
A wizard to direct user input. More...
#include <IConfigurationWindow.h>
Public Member Functions | |
virtual | ~IConfigurationWizard ()=default |
virtual void | Run (const std::string &strControllerId, const std::vector< IFeatureButton * > &buttons)=0 |
Start the wizard for the specified buttons. | |
virtual void | OnUnfocus (IFeatureButton *button)=0 |
Callback for feature losing focus. | |
virtual bool | Abort (bool bWait=true)=0 |
Abort a running wizard. | |
virtual void | RegisterKey (const CPhysicalFeature &key)=0 |
Register a key by its keycode. | |
virtual void | UnregisterKeys ()=0 |
Unregister all registered keys. | |
A wizard to direct user input.
The wizard is run for the current controller selected in the controller list (IControllerList). It prompts the user for input for each feature (IFeatureButton) in the feature list (IFeatureList).
|
virtualdefault |
Abort a running wizard.
bWait | True if the call should block until the wizard is fully aborted |
Implemented in KODI::GAME::CGUIConfigurationWizard.
|
pure virtual |
Callback for feature losing focus.
button | The feature button losing focus |
Implemented in KODI::GAME::CGUIConfigurationWizard.
|
pure virtual |
Register a key by its keycode.
key | A key with a valid keycode |
This should be called before Run(). It allows the user to choose a key to map instead of scrolling through a long list.
Implemented in KODI::GAME::CGUIConfigurationWizard.
|
pure virtual |
Start the wizard for the specified buttons.
controllerId | The controller ID being mapped |
buttons | The buttons to map |
Implemented in KODI::GAME::CGUIConfigurationWizard.
|
pure virtual |
Unregister all registered keys.
Implemented in KODI::GAME::CGUIConfigurationWizard.