The IDeviceHandler interface provides a collection of all engine's Input and Output device methods. More...
#include "murl_logic_i_device_handler.h"
Inherited by Murl::Logic::DeviceHandler.
Public Member Functions | |
virtual Bool | Init ()=0 |
Initialize the object. More... | |
virtual Bool | DeInit ()=0 |
Deinitialize the object. More... | |
virtual void | ConfigChanged (const IAppConfiguration *appConfig)=0 |
Notification of changed configuration. More... | |
virtual IVirtualMouse * | GetVirtualMouse ()=0 |
Get the virtual-mouse device object. More... | |
virtual Input::IDeviceHandler * | GetInputDeviceHandler ()=0 |
Get the input devicehandler object. More... | |
virtual Output::IDeviceHandler * | GetOutputDeviceHandler ()=0 |
Get the output devicehandler object. More... | |
Accelerometer | |
The Input::IAccelerometerDevice methods. To receive data the device must be activated by IAppConfiguration::SetAccelerometerActive(). | |
virtual Bool | IsAccelerationAvailable () const =0 |
Check if the Input::IAccelerometerDevice is available. More... | |
virtual Real | GetAccelerationX () const =0 |
Forward to Input::Input::IAccelerometerDevice::GetAccelerationX() if control is available, otherwise 0 is returned. | |
virtual Real | GetAccelerationY () const =0 |
Forward to Input::IAccelerometerDevice::GetAccelerationY() if control is available, otherwise 0 is returned. | |
virtual Real | GetAccelerationZ () const =0 |
Forward to Input::IAccelerometerDevice::GetAccelerationZ() if control is available, otherwise 0 is returned. | |
virtual Input::AccelerationVector | GetAcceleration () const =0 |
Forward to Input::IAccelerometerDevice::GetAcceleration() if control is available, otherwise a zero vector is returned. | |
Gyroscope | |
The Input::IGyroscopeDevice methods. To receive data the device must be activated by IAppConfiguration::SetGyroscopeActive(). | |
virtual Bool | IsGyroscopeAvailable () const =0 |
Check if the Input::IGyroscopeDevice is available. More... | |
virtual Real | GetAngularVelocityX () const =0 |
Forward to Input::IGyroscopeDevice::GetAngularVelocityX() if control is available, otherwise 0 is returned. | |
virtual Real | GetAngularVelocityY () const =0 |
Forward to Input::IGyroscopeDevice::GetAngularVelocityY() if control is available, otherwise 0 is returned. | |
virtual Real | GetAngularVelocityZ () const =0 |
Forward to Input::IGyroscopeDevice::GetAngularVelocityZ() if control is available, otherwise 0 is returned. | |
virtual Input::AngularVelocityVector | GetAngularVelocity () const =0 |
Forward to Input::IGyroscopeDevice::GetAngularVelocity() if control is available, otherwise a zero vector is returned. | |
Heading | |
The Input::IHeadingDevice methods. To receive data the device must be activated by IAppConfiguration::SetHeadingActive(). | |
virtual Bool | IsHeadingAvailable () const =0 |
Check if the Input::IHeadingDevice is available. More... | |
virtual Double | GetMagneticFieldX () const =0 |
Forward to Input::IHeadingDevice::GetMagneticFieldX() if control is available, otherwise 0 is returned. | |
virtual Double | GetMagneticFieldY () const =0 |
Forward to Input::IHeadingDevice::GetMagneticFieldY() if control is available, otherwise 0 is returned. | |
virtual Double | GetMagneticFieldZ () const =0 |
Forward to Input::IHeadingDevice::GetMagneticFieldZ() if control is available, otherwise 0 is returned. | |
virtual Input::MagneticFieldVector | GetMagneticField () const =0 |
Forward to Input::IHeadingDevice::GetMagneticField() if control is available, otherwise a zero vector is returned. | |
virtual Double | GetMagneticAngle () const =0 |
Forward to Input::IHeadingDevice::GetMagneticAngle() if control is available, otherwise 0 is returned. | |
virtual Double | GetTrueAngle () const =0 |
Forward to Input::IHeadingDevice::GetTrueAngle() if control is available, otherwise 0 is returned. | |
Location | |
The Input::ILocationDevice methods. To receive data the device must be activated by IAppConfiguration::SetLocationActive(). | |
virtual Bool | IsLocationAvailable () const =0 |
Check if the Input::ILocationDevice is available. More... | |
virtual Double | GetLatitude () const =0 |
Forward to Input::ILocationDevice::GetLatitude() if control is available, otherwise 0 is returned. | |
virtual Double | GetLongitude () const =0 |
Forward to Input::ILocationDevice::GetLongitude() if control is available, otherwise 0 is returned. | |
virtual Double | GetAltitude () const =0 |
Forward to Input::ILocationDevice::GetAltitude() if control is available, otherwise 0 is returned. | |
virtual Util::GeoLocation | GetGeoLocation () const =0 |
Forward to Input::ILocationDevice::GetGeoLocation() if control is available, otherwise a zero location is returned. | |
virtual Double | GetVelocity () const =0 |
Forward to Input::ILocationDevice::GetVelocity() if control is available, otherwise -1 is returned. | |
virtual Double | GetHorizontalAccuracy () const =0 |
Forward to Input::ILocationDevice::GetHorizontalAccuracy() if control is available, otherwise -1 is returned. | |
virtual Double | GetVerticalAccuracy () const =0 |
Forward to Input::ILocationDevice::GetVerticalAccuracy() if control is available, otherwise -1 is returned. | |
virtual IEnums::AuthorizationStatus | GetAuthorization () const =0 |
Forward to Input::ILocationDevice::GetAuthorization() if control is available, otherwise IEnums::AUTHORIZATION_NOT_DETERMINED is returned. | |
GameController | |
The Input::IGameControllerDevice methods. | |
virtual UInt32 | GetNumberOfGameControllerDevices () const =0 |
Get the number of Input::IGameControllerDevice devices. More... | |
virtual Bool | IsGameControllerConnected (UInt32 deviceIndex) const =0 |
Check if a game controller device is connected. More... | |
virtual SInt32 | GetGameControllerPlayerIndex (UInt32 deviceIndex) const =0 |
Get the game controller player index. More... | |
virtual Bool | GetGameControllerDeviceInfo (IGameControllerMapping::DeviceInfo &deviceInfo, UInt32 deviceIndex) const =0 |
Get the game controller device information. More... | |
virtual Bool | IsGameControllerButtonAvailable (IEnums::GameControllerButton button, UInt32 deviceIndex) const =0 |
Check if a specified game controller button is available. More... | |
virtual Bool | IsGameControllerButtonPressed (IEnums::GameControllerButton button, UInt32 deviceIndex) const =0 |
Check if a specified game controller button is pressed. More... | |
virtual Bool | WasGameControllerButtonPressed (IEnums::GameControllerButton button, UInt32 deviceIndex) const =0 |
Check if a specified game controller button was pressed in the most recent tick. More... | |
virtual Bool | WasGameControllerButtonReleased (IEnums::GameControllerButton button, UInt32 deviceIndex) const =0 |
Check if a specified game controller button was released in the most recent tick. More... | |
virtual Bool | IsGameControllerControlAvailable (IEnums::GameControllerControl control, UInt32 deviceIndex) const =0 |
Check if a specified game controller control is available. More... | |
virtual Bool | GetGameControllerShoulder (Float &value, IEnums::GameControllerControl control, UInt32 deviceIndex) const =0 |
Get the game controller analog shoulder button value. More... | |
virtual Bool | GetGameControllerStick (Float &xAxis, Float &yAxis, IEnums::GameControllerControl control, UInt32 deviceIndex) const =0 |
Get the game controller analog stick axis values. More... | |
virtual Bool | GetGameControllerGravity (Input::AccelerationVector &gravity, UInt32 deviceIndex) const =0 |
Get the game controller gravity axes values. More... | |
virtual Bool | GetGameControllerAcceleration (Input::AccelerationVector &acceleration, UInt32 deviceIndex) const =0 |
Get the game controller acceleration axes values. More... | |
virtual Bool | SetGameControllerTouchOrientationEnabled (Bool isEnabled, UInt32 deviceIndex)=0 |
Set the game controller touchpad orientation enabled state. More... | |
virtual Bool | GetGameControllerTouchOrientationEnabled (Bool &isEnabled, UInt32 deviceIndex) const =0 |
Get the game controller touchpad orientation enabled state. More... | |
virtual Bool | SetGameControllerTouchAbsoluteEnabled (Bool isEnabled, UInt32 deviceIndex)=0 |
Set the game controller touchpad absolute enabled state. More... | |
virtual Bool | GetGameControllerTouchAbsoluteEnabled (Bool &isEnabled, UInt32 deviceIndex) const =0 |
Get the game controller touchpad absolute enabled state. More... | |
virtual Bool | SetGameControllerVibration (Float intensity, IEnums::GameControllerControl control, UInt32 deviceIndex)=0 |
Set a game controller vibration with a specified intensity. More... | |
virtual IGameControllerMappingPtr | GetGameControllerMapping (UInt32 deviceIndex)=0 |
Get the game controller mapping interface. More... | |
Keyboard | |
The Input::IKeyboardDevice methods. | |
virtual Bool | IsKeyboardAvailable () const =0 |
Check if the Input::IKeyboardDevice is available. More... | |
virtual UInt32 | GetNumberOfKeys () const =0 |
Forward to Input::IKeyboardDevice::GetNumberOfKeys() if control is available, otherwise 0 is returned. | |
virtual const String & | GetKey (UInt32 index) const =0 |
Forward to Input::IKeyboardDevice::GetKey() if control is available, otherwise an empty string is returned. | |
virtual const StringArray & | GetKeys () const =0 |
Forward to Input::IKeyboardDevice::GetKeys() if control is available, otherwise an empty string array is returned. | |
virtual IEnums::KeyCode | GetKeyCode (UInt32 index) const =0 |
Get the key code of a key pressed in the most recent tick. More... | |
virtual SInt32 | EditString (String &editString, UInt32 maxLength=0, Bool hideKeyboard=false, const Graph::ITextGeometry *textGeometry=nullptr, String nonPrintableReplacement=String()) const =0 |
Edit a UTF8 string using all keys pressed in the most recent tick. More... | |
Motion | |
The Input::IMotionDevice methods. | |
virtual Bool | IsMotionAvailable () const =0 |
Check if the Input::IMotionDevice is available. More... | |
virtual Bool | IsShaken () const =0 |
Forward to Input::IMotionDevice::IsShaken() if control is available, otherwise false is returned. | |
virtual Bool | WasShaken () const =0 |
Forward to Input::IMotionDevice::WasShaken() if control is available, otherwise false is returned. | |
Mouse | |
The Input::IMouseDevice methods. | |
virtual Bool | IsMouseAvailable () const =0 |
Check if the Input::IMouseDevice is available. More... | |
virtual Bool | WasMouseMoved () const =0 |
Forward to Input::IMouseDevice::WasMoved() if control is available, otherwise false is returned. | |
virtual Bool | GetMousePosition (Real &x, Real &y) const =0 |
Get the mouse position on the display surface. More... | |
virtual Bool | IsMousePositionInRange () const =0 |
Check if the mouse position is in range of the display surface. More... | |
virtual Bool | IsMousePositionXInRange () const =0 |
Forward to Input::IMouseDevice::IsPositionXInRange() if control is available, otherwise false is returned. | |
virtual Bool | IsMousePositionYInRange () const =0 |
Forward to Input::IMouseDevice::IsPositionYInRange() if control is available, otherwise false is returned. | |
virtual Bool | IsMouseButtonPressed (IEnums::MouseButton button) const =0 |
Check if a specified mouse button is pressed. More... | |
virtual Bool | WasMouseButtonPressed (IEnums::MouseButton button) const =0 |
Check if a specified mouse button was pressed in the most recent tick. More... | |
virtual Bool | WasMouseButtonReleased (IEnums::MouseButton button) const =0 |
Check if a specified mouse button was released in the most recent tick. More... | |
Orientation | |
The Input::IOrientationDevice methods. To receive data the device must be activated by IAppConfiguration::SetOrientationActive(). | |
virtual Bool | IsOrientationAvailable () const =0 |
Check if the Input::IOrientationDevice is available. More... | |
virtual IEnums::SensorOrientation | GetOrientation () const =0 |
Forward to Input::IOrientationDevice::GetOrientation() if control is available, otherwise IEnums::SENSOR_ORIENTATION_UNKNOWN is returned. | |
RawButton | |
The Input::IRawButtonDevice methods. | |
virtual Bool | IsRawButtonAvailable () const =0 |
Check if the Input::IRawButtonDevice is available. More... | |
virtual Bool | IsRawButtonPressed (RawButtonCode code) const =0 |
Forward to Input::IRawButtonDevice::IsButtonPressed() if control is available, otherwise false is returned. | |
virtual Bool | WasRawButtonPressed (RawButtonCode code) const =0 |
Forward to Input::IRawButtonDevice::WasButtonPressed() if control is available, otherwise false is returned. | |
virtual Bool | WasRawButtonReleased (RawButtonCode code) const =0 |
Forward to Input::IRawButtonDevice::WasButtonReleased() if control is available, otherwise false is returned. | |
RawKeyboard | |
The Input::IRawKeyboardDevice methods. | |
virtual Bool | IsRawKeyboardAvailable () const =0 |
Check if the Input::IRawKeyboardDevice is available. More... | |
virtual Bool | IsRawKeyPressed (RawKeyCode code) const =0 |
Forward to Input::IRawKeyboardDevice::IsKeyPressed() if control is available, otherwise false is returned. | |
virtual Bool | WasRawKeyPressed (RawKeyCode code) const =0 |
Forward to Input::IRawKeyboardDevice::WasKeyPressed() if control is available, otherwise false is returned. | |
virtual Bool | WasRawKeyReleased (RawKeyCode code) const =0 |
Forward to Input::IRawKeyboardDevice::WasKeyReleased() if control is available, otherwise false is returned. | |
RawMouse | |
The Input::IRawMouseDevice methods. | |
virtual Bool | IsRawMouseAvailable () const =0 |
Check if the Input::IRawMouseDevice is available. More... | |
virtual Bool | GetRawMouseDelta (Real &x, Real &y) const =0 |
Get the mouse axis delta values in the most recent tick. More... | |
virtual Bool | GetRawWheelDelta (Real &x, Real &y) const =0 |
Get the mouse wheel axis delta values in the most recent tick. More... | |
TouchScreen | |
The Input::ITouchScreenDevice methods. Multi touch reports can be disabled by IAppConfiguration::SetMultiTouchActive(). | |
virtual UInt32 | GetNumberOfTouchDevices () const =0 |
Get the number of Input::ITouchScreenDevice devices. More... | |
virtual Bool | IsTouchPressed (UInt32 deviceIndex=0) const =0 |
Check if the touch is pressed. More... | |
virtual Bool | WasTouchCancelled (UInt32 deviceIndex=0) const =0 |
Check if the touch was cancelled in the most recent tick. More... | |
virtual Bool | WasTouchPressed (UInt32 deviceIndex=0) const =0 |
Check if the touch was pressed in the most recent tick. More... | |
virtual Bool | WasTouchReleased (UInt32 deviceIndex=0) const =0 |
Check if the touch was released in the most recent tick. More... | |
virtual Bool | WasTouchMoved (UInt32 deviceIndex=0) const =0 |
Check if the touch was moved in the most recent tick. More... | |
virtual Bool | GetTouchPosition (Real &x, Real &y, UInt32 deviceIndex=0) const =0 |
Get the touch position on the display surface. More... | |
KeyboardControl | |
The IKeyboardControl methods. | |
virtual Bool | IsKeyboardControlAvailable () const =0 |
Check if the keyboard control is available. More... | |
virtual IKeyboardControl * | GetKeyboardControl ()=0 |
Get the keyboard control interface. More... | |
virtual void | SetKeyboardType (IKeyboardControl::KeyboardType keyboardType)=0 |
Forward to IKeyboardControl::SetKeyboardType() if control is available. | |
virtual void | SetReturnKeyType (IKeyboardControl::ReturnKeyType returnKeyType)=0 |
Forward to IKeyboardControl::SetReturnKeyType() if control is available. | |
virtual void | ShowKeyboard () const =0 |
Forward to IKeyboardControl::Show() if control is available. | |
virtual void | HideKeyboard () const =0 |
Forward to IKeyboardControl::Hide() if control is available. | |
virtual Bool | ToggleKeyboard () const =0 |
Toggle the show/hide state of the on-screen keyboard. More... | |
virtual Bool | IsKeyboardShowing () const =0 |
Forward to IKeyboardControl::IsShowing() if control is available, otherwise false is returned. More... | |
virtual Bool | WasKeyboardClosed () const =0 |
Forward to IKeyboardControl::WasClosed() if control is available, otherwise false is returned. More... | |
virtual Bool | HasKeyboardTextfield () const =0 |
Forward to IKeyboardControl::HasTextfield() if control is available, otherwise false is returned. More... | |
virtual void | SetKeyboardTitle (const String &title)=0 |
Forward to IKeyboardControl::SetTitle() if control is available. More... | |
virtual void | SetKeyboardDescription (const String &description)=0 |
Forward to IKeyboardControl::SetDescription() if control is available. More... | |
virtual void | SetKeyboardText (const String &text)=0 |
Forward to IKeyboardControl::SetText() if control is available. More... | |
virtual const String & | GetKeyboardText () const =0 |
Forward to IKeyboardControl::GetText() if control is available, otherwise an empty string is returned. More... | |
RumbleControl | |
The IRumbleControl methods. | |
virtual Bool | IsRumbleControlAvailable () const =0 |
Check if the rumble control is available. More... | |
virtual void | Rumble (Float duration=0.5) const =0 |
Forward to IRumbleControl::Rumble() if control is available. | |
AppStoreControl | |
The IAppStoreControl methods. | |
virtual Bool | IsAppStoreControlAvailable () const =0 |
Check if the app-store control is available. More... | |
virtual IAppStoreControl * | GetAppStoreControl ()=0 |
Get the app-store control interface. More... | |
virtual IAppStoreControl::Status | GetAppStoreStatus () const =0 |
Forward to IAppStoreControl::GetStatus() if control is available, otherwise IAppStoreControl::STATUS_IDLE is returned. | |
virtual Bool | RegisterProduct (const String &productId, IAppStoreProduct::ProductType productType)=0 |
Forward to IAppStoreControl::RegisterProduct() if control is available, otherwise false is returned. | |
virtual Bool | ConnectToStore ()=0 |
Forward to IAppStoreControl::ConnectToStore() if control is available, otherwise false is returned. | |
virtual Bool | DisconnectFromStore ()=0 |
Forward to IAppStoreControl::DisconnectToStore() if control is available, otherwise false is returned. | |
virtual Bool | ReconnectToStore ()=0 |
Forward to IAppStoreControl::ReconnectToStore() if control is available, otherwise false is returned. | |
virtual Bool | RestoreTransactions ()=0 |
Forward to IAppStoreControl::RestoreTransactions() if control is available, otherwise false is returned. | |
virtual Bool | SwitchAppStoreImplementation (SInt32 id)=0 |
Forward to IAppStoreControl::SwitchAppStoreImplementation() if control is available, otherwise false is returned. | |
virtual UInt32 | GetNumberOfAvailableProducts () const =0 |
Forward to IAppStoreControl::GetNumberOfAvailableProducts() if control is available, otherwise 0 is returned. | |
virtual IAppStoreProduct * | GetAvailableProduct (UInt32 index) const =0 |
Forward to IAppStoreControl::GetAvailableProduct() if control is available, otherwise null is returned. | |
virtual IAppStoreProduct * | GetAvailableProduct (const String &productId) const =0 |
Forward to IAppStoreControl::GetAvailableProduct() if control is available, otherwise null is returned. | |
virtual Bool | CanPurchaseProducts () const =0 |
Forward to IAppStoreControl::CanPurchaseProducts() if control is available, otherwise false is returned. | |
virtual Bool | PurchaseProduct (IAppStoreProduct *product)=0 |
Forward to IAppStoreControl::PurchaseProduct() if control is available, otherwise false is returned. | |
virtual Bool | ConsumeProduct (IAppStoreProduct *product)=0 |
Forward to IAppStoreControl::ConsumeProduct() if control is available, otherwise false is returned. | |
virtual Bool | ConfirmConsumedProduct (IAppStoreProduct *product)=0 |
Forward to IAppStoreControl::ConfirmConsumedProduct() if control is available, otherwise false is returned. | |
virtual Bool | TryCancelProduct (IAppStoreProduct *product)=0 |
Forward to IAppStoreControl::TryCancelProduct() if control is available, otherwise false is returned. | |
virtual const String & | GetAppStoreLastError () const =0 |
Forward to IAppStoreControl::GetLastError() if control is available, otherwise an empty string is returned. | |
virtual Bool | ClearAppStoreLastError ()=0 |
Forward to IAppStoreControl::ClearLastError() if control is available, otherwise false is returned. | |
CloudControl | |
The ICloudControl methods. | |
virtual Bool | IsCloudControlAvailable () const =0 |
Check if the cloud control is available. More... | |
virtual ICloudControl * | GetCloudControl ()=0 |
Get the cloud control interface. More... | |
GameCenterControl | |
The IGameCenterControl methods. | |
virtual Bool | IsGameCenterControlAvailable () const =0 |
Check if the game-center control is available. More... | |
virtual IGameCenterControl * | GetGameCenterControl ()=0 |
Get the game center control interface. More... | |
SystemDialogControl | |
The ISystemDialogControl methods. | |
virtual Bool | IsSystemDialogControlAvailable () const =0 |
Check if the system-dialog control is available. More... | |
virtual ISystemDialog * | CreateSystemDialog (const String &title, const String &message, const String &button0Label) const =0 |
Create a system-dialog object with 1 button. More... | |
virtual ISystemDialog * | CreateSystemDialog (const String &title, const String &message, const String &button0Label, const String &button1Label) const =0 |
Create a system-dialog object with 2 buttons. More... | |
virtual ISystemDialog * | CreateSystemDialog (const String &title, const String &message, const String &button0Label, const String &button1Label, const String &button2Label) const =0 |
Create a system-dialog object with 3 buttons. More... | |
virtual ISystemDialog * | CreateSystemDialog (const String &title, const String &message, const StringArray &buttonLabels) const =0 |
Create a system-dialog object with a variable number of buttons. More... | |
virtual ISystemDialog * | CreateSystemDialog (const String &title, const String &message) const =0 |
Forward to ISystemDialogControl::CreateSystemDialog() if control is available, otherwise null is returned. | |
virtual void | DestroySystemDialog (ISystemDialog *&dialog)=0 |
Forward to ISystemDialogControl::DestroySystemDialog() if control is available. | |
WebControl | |
The IWebControl methods. | |
virtual Bool | IsWebControlAvailable () const =0 |
Check if the web control is available. More... | |
virtual Bool | OpenUrlInSystemBrowser (const String &url) const =0 |
Forward to IWebControl::OpenUrlInSystemBrowser() if control is available, otherwise false is returned. | |
virtual IUrlRequest * | CreateUrlRequest ()=0 |
Forward to IWebControl::CreateUrlRequest() if control is available, otherwise null is returned. | |
virtual void | DestroyUrlRequest (IUrlRequest *&urlRequest)=0 |
Forward to IWebControl::DestroyUrlRequest() if control is available. | |
virtual IEMail * | CreateEMail (const String &subject, const String &message)=0 |
Forward to IWebControl::CreateEMail() if control is available, otherwise null is returned. | |
virtual IEMail * | CreateEMail (const String &subject, const String &message, const String &recipientAddress)=0 |
Forward to IWebControl::CreateEMail() if control is available, otherwise null is returned. | |
virtual void | DestroyEMail (IEMail *&eMail)=0 |
Forward to IWebControl::DestroyEMail() if control is available. | |
ScreenshotControl | |
The IScreenshotControl methods. | |
virtual Bool | IsScreenshotControlAvailable () const =0 |
Check if the screen-shot control is available. More... | |
virtual Bool | CreateScreenshot ()=0 |
Forward to IScreenshotControl::CreateScreenshot() if control is available, otherwise false is returned. | |
virtual Bool | DestroyScreenshot ()=0 |
Forward to IScreenshotControl::DestroyScreenshot() if control is available, otherwise false is returned. | |
virtual Bool | IsScreenshotBusy () const =0 |
Forward to IScreenshotControl::IsBusy() if control is available, otherwise false is returned. | |
virtual Bool | IsScreenshotReady () const =0 |
Forward to IScreenshotControl::IsReady() if control is available, otherwise false is returned. | |
virtual const Resource::IImage * | GetScreenshotImage () const =0 |
Forward to IScreenshotControl::GetScreenshotImage() if control is available, otherwise null is returned. | |
PreferencesControl | |
The IPreferencesControl methods. | |
virtual Bool | IsPreferencesControlAvailable () const =0 |
Check if the preferences control is available. More... | |
virtual IPreferencesControl * | GetPreferencesControl ()=0 |
Get the preferences control interface. More... | |
virtual Bool | PreferenceExists (const String &key)=0 |
Forward to IPreferencesControl::Exists() if control is available, otherwise false is returned. | |
virtual String | GetPreferenceValue (const String &key) const =0 |
Forward to IPreferencesControl::GetValue(const String& key) if control is available, otherwise an empty string is returned. | |
virtual Bool | GetPreferenceValue (const String &key, String &value) const =0 |
Forward to IPreferencesControl::GetValue(const String& key, String& value) if control is available, otherwise false is returned. | |
virtual Bool | SetPreferenceValue (const String &key, const String &value)=0 |
Forward to IPreferencesControl::SetValue() if control is available, otherwise false is returned. | |
virtual Bool | GetPreferenceData (const String &key, Data &value) const =0 |
Forward to IPreferencesControl::GetData() if control is available, otherwise false is returned. | |
virtual Bool | SetPreferenceData (const String &key, const Data &value)=0 |
Forward to IPreferencesControl::SetData() if control is available, otherwise false is returned. | |
virtual Bool | PreferenceRemove (const String &key)=0 |
Forward to IPreferencesControl::Remove() if control is available, otherwise false is returned. | |
TelephonyControl | |
The ITelephonyControl methods. | |
virtual Bool | IsTelephonyControlAvailable () const =0 |
Check if the telephony control is available. More... | |
virtual String | GetTelephonyCarrierName () const =0 |
Forward to ITelephonyControl::GetCarrierName() if control is available, otherwise an empty string is returned. | |
virtual String | GetTelephonyCountryCode () const =0 |
Forward to ITelephonyControl::GetCountryCode() if control is available, otherwise an empty string is returned. | |
virtual String | GetTelephonyNetworkCode () const =0 |
Forward to ITelephonyControl::GetNetworkCode() if control is available, otherwise an empty string is returned. | |
AppControl | |
The IAppControl methods. | |
virtual Bool | TerminateApp ()=0 |
Forward to IAppControl::TerminateApp() if control is available, otherwise false is returned. | |
virtual Bool | IsTerminatingApp () const =0 |
Forward to IAppControl::IsTerminatingApp() if control is available, otherwise false is returned. | |
virtual Bool | SuspendApp ()=0 |
Forward to IAppControl::SuspendApp() if control is available, otherwise false is returned. | |
virtual Bool | IsSuspendingApp () const =0 |
Forward to IAppControl::IsSuspendingApp() if control is available, otherwise false is returned. | |
virtual Bool | SetLoadingProgress (Real progress)=0 |
Forward to IAppControl::SetLoadingProgress() if control is available, otherwise false is returned. | |
virtual Real | GetLoadingProgress () const =0 |
Forward to IAppControl::GetLoadingProgress() if control is available, otherwise 0.0 is returned. | |
MusicPlayerControl | |
The IMusicPlayerControl methods. | |
virtual Bool | IsMusicPlayerControlAvailable () const =0 |
Check if the music player control is available. More... | |
virtual IMusicPlayerControl * | GetMusicPlayerControl ()=0 |
Get the music player control interface. More... | |
Detailed Description
The IDeviceHandler interface provides a collection of all engine's Input and Output device methods.
All methods can be called without consideration of the availability of the device, all methods simply return zero, false or empty strings if the corresponding device is not available.
Member Function Documentation
◆ Init()
|
pure virtual |
Initialize the object.
- Returns
- true if successful.
◆ DeInit()
|
pure virtual |
Deinitialize the object.
- Returns
- true if successful.
◆ ConfigChanged()
|
pure virtual |
Notification of changed configuration.
The notification is executed in the engine thread context if any configuration item has changed.
- Parameters
-
appConfig The application configuration object.
◆ IsAccelerationAvailable()
|
pure virtual |
Check if the Input::IAccelerometerDevice is available.
- Returns
- true if the device is available.
◆ IsGyroscopeAvailable()
|
pure virtual |
Check if the Input::IGyroscopeDevice is available.
- Returns
- true if the device is available.
◆ IsHeadingAvailable()
|
pure virtual |
Check if the Input::IHeadingDevice is available.
- Returns
- true if the device is available.
◆ IsLocationAvailable()
|
pure virtual |
Check if the Input::ILocationDevice is available.
- Returns
- true if the device is available.
◆ GetNumberOfGameControllerDevices()
|
pure virtual |
Get the number of Input::IGameControllerDevice devices.
If an additional controller is connected the number of devices will increase.
- Returns
- The number of game controller devices.
◆ IsGameControllerConnected()
|
pure virtual |
Check if a game controller device is connected.
If a controller is disconnected, the connected state changes to false and no more events are generated.
If another controller is connected, the controller device will be reconfigured and the connected state changes to true.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
deviceIndex The zero-based index of the game controller device.
- Returns
- true if a game controller device is connected, if false no controller is connected or the deviceIndex is out of range.
◆ GetGameControllerPlayerIndex()
|
pure virtual |
Get the game controller player index.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
deviceIndex The zero-based index of the game controller device.
- Returns
- The zero-based index of the player (typically indicated by lights on the controller), a negative value indicates an unset state (no lights are lit on the controller).
◆ GetGameControllerDeviceInfo()
|
pure virtual |
Get the game controller device information.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
deviceInfo The device information return value. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the device is available, if false the 'deviceInfo' return value stays unchanged.
◆ IsGameControllerButtonAvailable()
|
pure virtual |
Check if a specified game controller button is available.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
button The game controller button identifier. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the button is available.
◆ IsGameControllerButtonPressed()
|
pure virtual |
Check if a specified game controller button is pressed.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
button The game controller button identifier. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the button is pressed.
◆ WasGameControllerButtonPressed()
|
pure virtual |
Check if a specified game controller button was pressed in the most recent tick.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
button The game controller button identifier. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the button was pressed in the most recent tick.
◆ WasGameControllerButtonReleased()
|
pure virtual |
Check if a specified game controller button was released in the most recent tick.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
button The game controller button identifier. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the button was released in the most recent tick.
◆ IsGameControllerControlAvailable()
|
pure virtual |
Check if a specified game controller control is available.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
control The game controller control identifier. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the game controller control is available.
◆ GetGameControllerShoulder()
|
pure virtual |
Get the game controller analog shoulder button value.
The return value is in range [0.0 not pressed .. 1.0 full pressed].
Supported controls are IEnums::GAME_CONTROLLER_CONTROL_SHOULDER_L1, IEnums::GAME_CONTROLLER_CONTROL_SHOULDER_R1, IEnums::GAME_CONTROLLER_CONTROL_SHOULDER_L2 or IEnums::GAME_CONTROLLER_CONTROL_SHOULDER_R2.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
value The button return value. control The game controller control identifier. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the control and the device is available, if false the 'value' return value stays unchanged.
◆ GetGameControllerStick()
|
pure virtual |
Get the game controller analog stick axis values.
The return values are in range [-1.0 bottom/left .. 1.0 top/right].
Supported controls are IEnums::GAME_CONTROLLER_CONTROL_LEFT_STICK or IEnums::GAME_CONTROLLER_CONTROL_RIGHT_STICK.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
xAxis The x-axis return value. yAxis The y-axis return value. control The game controller control identifier. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the control and the device is available, if false all return values stay unchanged.
◆ GetGameControllerGravity()
|
pure virtual |
Get the game controller gravity axes values.
Note that the total acceleration of the controller is equal to gravity plus acceleration.
The values are available if IsControlAvailable(IEnums::GAME_CONTROLLER_CONTROL_ACCELERATION).
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
gravity The gravity axes return value in meter per seconds^2. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the control and the device is available, if false all return values stay unchanged.
◆ GetGameControllerAcceleration()
|
pure virtual |
Get the game controller acceleration axes values.
Note that the total acceleration of the controller is equal to gravity plus acceleration.
The values are available if IsControlAvailable(IEnums::GAME_CONTROLLER_CONTROL_ACCELERATION).
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
acceleration The acceleration axes return value in meter per seconds^2. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the control and the device is available, if false all return values stay unchanged.
◆ SetGameControllerTouchOrientationEnabled()
|
pure virtual |
Set the game controller touchpad orientation enabled state.
The default value for this state is false, which means that the values of the touchpad are always determined based on the controller’s portrait orientation. If the state is set to true, then the touchpad values are calculated based on its current orientation, either landscape or portrait.
Supported control is IEnums::GAME_CONTROLLER_CONTROL_TOUCH_ORIENTATION.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
isEnabled The touchpad orientation enabled state. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the control and the device is available.
◆ GetGameControllerTouchOrientationEnabled()
|
pure virtual |
Get the game controller touchpad orientation enabled state.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
isEnabled The touchpad orientation enabled state return value. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the control is available, if false the 'isEnabled' return value stay unchanged.
◆ SetGameControllerTouchAbsoluteEnabled()
|
pure virtual |
Set the game controller touchpad absolute enabled state.
The default value for this state is false, which means that the location where the user first touches the touchpad is assumed to be the neutral (0/0) value for the touchpad. All subsequent values are calculated relative to this position until the user lifts the finger. The next time the user’s finger touches the touchpad, a new origin is chosen. If this state is set to true, then all values are calculated relative to the physical center of the touchpad.
Supported control is IEnums::GAME_CONTROLLER_CONTROL_TOUCH_ABS_REL.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
isEnabled The touchpad absolute enabled state. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the control and the device is available.
◆ GetGameControllerTouchAbsoluteEnabled()
|
pure virtual |
Get the game controller touchpad absolute enabled state.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
isEnabled The touchpad absolute enabled state return value. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the control is available, if false the 'isEnabled' return value stay unchanged.
◆ SetGameControllerVibration()
|
pure virtual |
Set a game controller vibration with a specified intensity.
Supported controls are IEnums::GAME_CONTROLLER_CONTROL_VIBRATE_LOW or IEnums::GAME_CONTROLLER_CONTROL_VIBRATE_HIGH.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
intensity The intensity of the vibration in range [0.0 none .. 1.0 full]. control The game controller control identifier. deviceIndex The zero-based index of the game controller device.
- Returns
- true if the control and the device are available.
◆ GetGameControllerMapping()
|
pure virtual |
Get the game controller mapping interface.
Gamecontroller mapping is supported for USB HID game controller devices only, e.g. XBox controller or iOS controllers do not support mapping and return null.
A valid device index is [0 .. GetNumberOfGameControllerDevices() - 1].
- Parameters
-
deviceIndex The zero-based index of the game controller device.
- Returns
- The game controller mapping interface if the device is available or null if mapping is not supported by the game controller.
◆ IsKeyboardAvailable()
|
pure virtual |
Check if the Input::IKeyboardDevice is available.
- Returns
- true if the device is available.
◆ GetKeyCode()
|
pure virtual |
Get the key code of a key pressed in the most recent tick.
A valid key buffer index is [0 .. GetNumberOfKeys() - 1].
- Parameters
-
index The zero-based index of the key buffer.
- Returns
- The key code of the key or IEnums::KEYCODE_NONE if the key is not in the set of IEnums::KeyCode.
◆ EditString()
|
pure virtual |
Edit a UTF8 string using all keys pressed in the most recent tick.
This method supports the IEnums::KEYCODE_BACKSPACE key to remove UTF8 characters from the end of the string.
- Parameters
-
editString The string to edit. maxLength Maximum number of UTF8 characters to put into the string or zero for unlimited number of characters. hideKeyboard If true hide the on screen keyboard if the IEnums::KEYCODE_RETURN key was pressed. textGeometry A textgeometry node to add printable characters only. nonPrintableReplacement If a text geometry node is given, any non-printable characters are replaced by this string if it is not empty.
- Returns
- 1 if a character was added to the string or removed from the string, -1 if IEnums::KEYCODE_RETURN key was pressed or 0 if the string is unchanged.
◆ IsMotionAvailable()
|
pure virtual |
Check if the Input::IMotionDevice is available.
- Returns
- true if the device is available.
◆ IsMouseAvailable()
|
pure virtual |
Check if the Input::IMouseDevice is available.
- Returns
- true if the device is available.
◆ GetMousePosition()
|
pure virtual |
Get the mouse position on the display surface.
The return values are in range [-1.0 bottom/left .. 1.0 top/right].
- Parameters
-
x The x-position return value. y The y-position return value.
- Returns
- true if the device is available, if false all return values stay unchanged.
◆ IsMousePositionInRange()
|
pure virtual |
Check if the mouse position is in range of the display surface.
If the mouse cursor is moved out of the display surface (e.g. the window), the mouse positions are clipped to range [-1.0, 1.0]. This method can be used to detect this case.
- Returns
- true if the mouse position is in range.
◆ IsMouseButtonPressed()
|
pure virtual |
Check if a specified mouse button is pressed.
- Parameters
-
button The mouse button identifier.
- Returns
- true if the button is pressed.
◆ WasMouseButtonPressed()
|
pure virtual |
Check if a specified mouse button was pressed in the most recent tick.
- Parameters
-
button The mouse button identifier.
- Returns
- true if the button was pressed in the most recent tick.
◆ WasMouseButtonReleased()
|
pure virtual |
Check if a specified mouse button was released in the most recent tick.
- Parameters
-
button The mouse button identifier.
- Returns
- true if the button was released in the most recent tick.
◆ IsOrientationAvailable()
|
pure virtual |
Check if the Input::IOrientationDevice is available.
- Returns
- true if the device is available.
◆ IsRawButtonAvailable()
|
pure virtual |
Check if the Input::IRawButtonDevice is available.
- Returns
- true if the device is available.
◆ IsRawKeyboardAvailable()
|
pure virtual |
Check if the Input::IRawKeyboardDevice is available.
- Returns
- true if the device is available.
◆ IsRawMouseAvailable()
|
pure virtual |
Check if the Input::IRawMouseDevice is available.
- Returns
- true if the device is available.
◆ GetRawMouseDelta()
|
pure virtual |
Get the mouse axis delta values in the most recent tick.
- Parameters
-
x The x-axis return value. y The y-axis return value.
- Returns
- true if the device is available, if false all return values stay unchanged.
◆ GetRawWheelDelta()
|
pure virtual |
Get the mouse wheel axis delta values in the most recent tick.
- Parameters
-
x The x-axis return value. y The y-axis return value.
- Returns
- true if the device is available, if false all return values stay unchanged.
◆ GetNumberOfTouchDevices()
|
pure virtual |
Get the number of Input::ITouchScreenDevice devices.
Multi touch devices represents each single touch by a separate device.
- Returns
- The number of touch devices.
◆ IsTouchPressed()
|
pure virtual |
Check if the touch is pressed.
A valid device index is [0 .. GetNumberOfTouchDevices() - 1].
- Parameters
-
deviceIndex The zero-based index of the touch device.
- Returns
- true if the touch is pressed.
◆ WasTouchCancelled()
|
pure virtual |
Check if the touch was cancelled in the most recent tick.
A touch controller typically cancel multi touch inputs if too much simultaneous touches are present. A valid device index is [0 .. GetNumberOfTouchDevices() - 1].
- Parameters
-
deviceIndex The zero-based index of the touch device.
- Returns
- true if the touch was cancelled in the most recent tick.
◆ WasTouchPressed()
|
pure virtual |
Check if the touch was pressed in the most recent tick.
A valid device index is [0 .. GetNumberOfTouchDevices() - 1].
- Parameters
-
deviceIndex The zero-based index of the touch device.
- Returns
- true if the touch was pressed in the most recent tick.
◆ WasTouchReleased()
|
pure virtual |
Check if the touch was released in the most recent tick.
A valid device index is [0 .. GetNumberOfTouchDevices() - 1].
- Parameters
-
deviceIndex The zero-based index of the touch device.
- Returns
- true if the touch was released in the most recent tick.
◆ WasTouchMoved()
|
pure virtual |
Check if the touch was moved in the most recent tick.
A valid device index is [0 .. GetNumberOfTouchDevices() - 1].
- Parameters
-
deviceIndex The zero-based index of the touch device.
- Returns
- true if the touch was moved in the most recent tick.
◆ GetTouchPosition()
|
pure virtual |
Get the touch position on the display surface.
The return values are in range [-1.0 bottom/left .. 1.0 top/right]. A valid device index is [0 .. GetNumberOfTouchDevices() - 1].
- Parameters
-
x The x-position return value. y The y-position return value. deviceIndex The zero-based index of the touch device.
- Returns
- true if the device is available, if false all return values stay unchanged.
◆ IsKeyboardControlAvailable()
|
pure virtual |
Check if the keyboard control is available.
- Returns
- true if the control is available.
◆ GetKeyboardControl()
|
pure virtual |
Get the keyboard control interface.
Use this interface to use on-screen keyboard with text fields.
- Returns
- The keyboard control interface or null if not available.
◆ ToggleKeyboard()
|
pure virtual |
Toggle the show/hide state of the on-screen keyboard.
- Returns
- true if the on-screen keyboard is showing.
◆ IsKeyboardShowing()
|
pure virtual |
Forward to IKeyboardControl::IsShowing() if control is available, otherwise false is returned.
- Returns
- true if the on-screen keyboard is showing.
◆ WasKeyboardClosed()
|
pure virtual |
Forward to IKeyboardControl::WasClosed() if control is available, otherwise false is returned.
- Returns
- true if the on-screen keyboard was closed.
◆ HasKeyboardTextfield()
|
pure virtual |
Forward to IKeyboardControl::HasTextfield() if control is available, otherwise false is returned.
- Returns
- true if the on-screen keyboard has a text field for editing.
◆ SetKeyboardTitle()
|
pure virtual |
Forward to IKeyboardControl::SetTitle() if control is available.
- Parameters
-
title The title string.
◆ SetKeyboardDescription()
|
pure virtual |
Forward to IKeyboardControl::SetDescription() if control is available.
- Parameters
-
description The description string.
◆ SetKeyboardText()
|
pure virtual |
Forward to IKeyboardControl::SetText() if control is available.
- Parameters
-
text The editing string.
◆ GetKeyboardText()
|
pure virtual |
Forward to IKeyboardControl::GetText() if control is available, otherwise an empty string is returned.
- Returns
- The editing string from the text field.
◆ IsRumbleControlAvailable()
|
pure virtual |
Check if the rumble control is available.
- Returns
- true if the control is available.
◆ IsAppStoreControlAvailable()
|
pure virtual |
Check if the app-store control is available.
- Returns
- true if the control is available.
◆ GetAppStoreControl()
|
pure virtual |
Get the app-store control interface.
- Returns
- The app-store control interface or null if not available.
◆ IsCloudControlAvailable()
|
pure virtual |
Check if the cloud control is available.
The cloud control must be enabled during IApp::Configure() by setting IEngineConfiguration::SetCloudControlEnable().
- Returns
- true if the control is available.
◆ GetCloudControl()
|
pure virtual |
Get the cloud control interface.
The cloud control must be enabled during IApp::Configure() by setting IEngineConfiguration::SetCloudControlEnable().
- Returns
- The cloud control interface or null if not available.
◆ IsGameCenterControlAvailable()
|
pure virtual |
Check if the game-center control is available.
- Returns
- true if the control is available.
◆ GetGameCenterControl()
|
pure virtual |
Get the game center control interface.
- Returns
- The game center control interface or null if not available.
◆ IsSystemDialogControlAvailable()
|
pure virtual |
Check if the system-dialog control is available.
- Returns
- true if the control is available.
◆ CreateSystemDialog() [1/4]
|
pure virtual |
Create a system-dialog object with 1 button.
- Parameters
-
title The title string for the system-dialog object. message The message string for the system-dialog object. button0Label The button label string for the system-dialog object.
- Returns
- The system-dialog object or null if creation failed.
◆ CreateSystemDialog() [2/4]
|
pure virtual |
Create a system-dialog object with 2 buttons.
Button appearance is right to left or bottom up.
- Parameters
-
title The title string for the system-dialog object. message The message string for the system-dialog object. button0Label The 1st button label string for the system-dialog object. button1Label The 2nd button label string for the system-dialog object.
- Returns
- The system-dialog object or null if creation failed.
◆ CreateSystemDialog() [3/4]
|
pure virtual |
Create a system-dialog object with 3 buttons.
Button appearance is right to left or bottom up.
- Parameters
-
title The title string for the system-dialog object. message The message string for the system-dialog object. button0Label The 1st button label string for the system-dialog object. button1Label The 2nd button label string for the system-dialog object. button2Label The 3rd button label string for the system-dialog object.
- Returns
- The system-dialog object or null if creation failed.
◆ CreateSystemDialog() [4/4]
|
pure virtual |
Create a system-dialog object with a variable number of buttons.
Button appearance is right to left or bottom up.
- Parameters
-
title The title string for the system-dialog object. message The message string for the system-dialog object. buttonLabels The button label strings for the system-dialog object.
- Returns
- The system-dialog object or null if creation failed.
◆ IsWebControlAvailable()
|
pure virtual |
Check if the web control is available.
- Returns
- true if the control is available.
◆ IsScreenshotControlAvailable()
|
pure virtual |
Check if the screen-shot control is available.
- Returns
- true if the control is available.
◆ IsPreferencesControlAvailable()
|
pure virtual |
Check if the preferences control is available.
- Returns
- true if the control is available.
◆ GetPreferencesControl()
|
pure virtual |
Get the preferences control interface.
- Returns
- The preferences control interface or null if not available.
◆ IsTelephonyControlAvailable()
|
pure virtual |
Check if the telephony control is available.
- Returns
- true if the control is available.
◆ IsMusicPlayerControlAvailable()
|
pure virtual |
Check if the music player control is available.
- Returns
- true if the control is available.
◆ GetMusicPlayerControl()
|
pure virtual |
Get the music player control interface.
- Returns
- The music player control interface or null if not available.
◆ GetVirtualMouse()
|
pure virtual |
Get the virtual-mouse device object.
- Returns
- The virtual-mouse device object.
◆ GetInputDeviceHandler()
|
pure virtual |
Get the input devicehandler object.
- Returns
- The input devicehandler object.
◆ GetOutputDeviceHandler()
|
pure virtual |
Get the output devicehandler object.
- Returns
- The output devicehandler object.
The documentation for this interface was generated from the following file:
- murl_logic_i_device_handler.h