xbmc
|
A GUI button in a feature list (IFeatureList) More...
#include <IConfigurationWindow.h>
Public Member Functions | |
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. More... | |
virtual bool | IsFinished (void) const =0 |
Check if the button supports further calls to PromptForInput() More... | |
virtual INPUT::CARDINAL_DIRECTION | GetCardinalDirection (void) const =0 |
Get the direction of the next analog stick or relative pointer prompt. More... | |
virtual JOYSTICK::WHEEL_DIRECTION | GetWheelDirection (void) const =0 |
Get the direction of the next wheel prompt. More... | |
virtual JOYSTICK::THROTTLE_DIRECTION | GetThrottleDirection (void) const =0 |
Get the direction of the next throttle prompt. More... | |
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. More... | |
virtual void | Reset (void)=0 |
Reset button after prompting for input has finished. | |
A GUI button in a feature list (IFeatureList)
|
pure virtual |
Get the direction of the next analog stick or relative pointer prompt.
Implemented in KODI::GAME::CGUIFeatureButton, and KODI::GAME::CGUICardinalFeatureButton.
|
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.
|
pure virtual |
Check if the button supports further calls to PromptForInput()
Implemented in KODI::GAME::CGUISelectKeyButton, KODI::GAME::CGUICardinalFeatureButton, KODI::GAME::CGUIScalarFeatureButton, KODI::GAME::CGUIThrottleButton, and KODI::GAME::CGUIWheelButton.
|
pure virtual |
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::CGUISelectKeyButton, KODI::GAME::CGUICardinalFeatureButton, KODI::GAME::CGUIScalarFeatureButton, 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.