Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
A GUI button in a feature list (IFeatureList) More...
#include <IConfigurationWindow.h>
Public Member Functions | |
virtual | ~IFeatureButton ()=default |
virtual const CPhysicalFeature & | Feature (void) const =0 |
Get the feature represented by this button. | |
virtual bool | AllowWizard () const |
Allow the wizard to include this feature in a list of buttons to map. | |
virtual bool | PromptForInput (CEvent &waitEvent)=0 |
Prompt the user for a single input element. | |
virtual bool | IsFinished (void) const =0 |
Check if the button supports further calls to PromptForInput() | |
virtual INPUT::CARDINAL_DIRECTION | GetCardinalDirection (void) const =0 |
Get the direction of the next analog stick or relative pointer prompt. | |
virtual JOYSTICK::WHEEL_DIRECTION | GetWheelDirection (void) const =0 |
Get the direction of the next wheel prompt. | |
virtual JOYSTICK::THROTTLE_DIRECTION | GetThrottleDirection (void) const =0 |
Get the direction of the next throttle prompt. | |
virtual bool | NeedsKey () const |
True if the button is waiting for a key press. | |
virtual void | SetKey (const CPhysicalFeature &key) |
Set the pressed key that the user will be prompted to map. | |
virtual void | Reset (void)=0 |
Reset button after prompting for input has finished. | |
A GUI button in a feature list (IFeatureList)
|
virtualdefault |
|
inlinevirtual |
Allow the wizard to include this feature in a list of buttons to map.
Reimplemented in KODI::GAME::CGUISelectKeyButton.
|
pure virtual |
Get the feature represented by this button.
Implemented in KODI::GAME::CGUIFeatureButton, and KODI::GAME::CGUISelectKeyButton.
|
pure virtual |
Get the direction of the next analog stick or relative pointer prompt.
Implemented in KODI::GAME::CGUICardinalFeatureButton, and KODI::GAME::CGUIFeatureButton.
|
pure virtual |
Get the direction of the next throttle prompt.
Implemented in KODI::GAME::CGUIFeatureButton, and KODI::GAME::CGUIThrottleButton.
|
pure virtual |
Get the direction of the next wheel prompt.
Implemented in KODI::GAME::CGUIFeatureButton, and KODI::GAME::CGUIWheelButton.
Check if the button supports further calls to PromptForInput()
Implemented in KODI::GAME::CGUICardinalFeatureButton, KODI::GAME::CGUIScalarFeatureButton, KODI::GAME::CGUISelectKeyButton, KODI::GAME::CGUIThrottleButton, and KODI::GAME::CGUIWheelButton.
|
inlinevirtual |
True if the button is waiting for a key press.
Reimplemented in KODI::GAME::CGUISelectKeyButton.
Prompt the user for a single input element.
waitEvent | The event to block on while prompting for input |
After the button has finished prompting the user for all the input elements it requires, this will return false until Reset() is called.
Implemented in KODI::GAME::CGUICardinalFeatureButton, KODI::GAME::CGUIScalarFeatureButton, KODI::GAME::CGUISelectKeyButton, KODI::GAME::CGUIThrottleButton, and KODI::GAME::CGUIWheelButton.
Reset button after prompting for input has finished.
Implemented in KODI::GAME::CGUICardinalFeatureButton, KODI::GAME::CGUIScalarFeatureButton, KODI::GAME::CGUISelectKeyButton, KODI::GAME::CGUIThrottleButton, and KODI::GAME::CGUIWheelButton.
|
inlinevirtual |
Set the pressed key that the user will be prompted to map.
key | The key that was pressed |
Reimplemented in KODI::GAME::CGUISelectKeyButton.