![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IDeviceHandler interface.
The device handler registers all control device instances created by the platform or the application.
Initialize the device handler.
Boolean Init()
Deinitialize the device handler.
Boolean DeInit()
Update all registered devices. The update is executed in the logic thread context each logic tick after executing the logic processors Logic::IEngineProcessor::ProcessTick().
Boolean UpdateDevices()
Notification of changed configuration. The notification is executed in the engine thread context if any configuration item has changed.
ConfigChanged(Murl.IAppConfiguration appConfig)
appConfig | The application configuration object. |
Add a keyboard control object to the output device handler.
Boolean AddKeyboardControl(Murl.IKeyboardControl keyboardControl)
keyboardControl | The keyboard control object to add. |
Remove a keyboard control object from the output device handler.
Boolean RemoveKeyboardControl(Murl.IKeyboardControl keyboardControl)
keyboardControl | The keyboard control object to remove. |
Get a registered keyboard control object.
Murl.IKeyboardControl GetKeyboardControl(Integer index)
index | The zero-based index of the control. |
Add a application control object to the output device handler.
Boolean AddAppControl(Murl.IAppControl appControl)
appControl | The application control object to add. |
Remove a application control object from the output device handler.
Boolean RemoveAppControl(Murl.IAppControl appControl)
appControl | The application control object to remove. |
Get a registered application control object.
Murl.IAppControl GetAppControl(Integer index)
index | The zero-based index of the control. |
Add a rumble control object to the output device handler.
Boolean AddRumbleControl(Murl.IRumbleControl rumbleControl)
rumbleControl | The rumble control object to add. |
Remove a rumble control object from the output device handler.
Boolean RemoveRumbleControl(Murl.IRumbleControl rumbleControl)
rumbleControl | The rumble control object to remove. |
Get a registered rumble control object.
Murl.IRumbleControl GetRumbleControl(Integer index)
index | The zero-based index of the control. |
Add a app-store control object to the output device handler.
Boolean AddAppStoreControl(Murl.IAppStoreControl appStoreControl)
appStoreControl | The app-store control object to add. |
Remove a app-store control object from the output device handler.
Boolean RemoveAppStoreControl(Murl.IAppStoreControl appStoreControl)
appStoreControl | The app-store control object to remove. |
Get a registered app-store control object.
Murl.IAppStoreControl GetAppStoreControl(Integer index)
index | The zero-based index of the control. |
Add a cloud control object to the output device handler.
Boolean AddCloudControl(Murl.ICloudControl cloudControl)
cloudControl | The cloud control object to add. |
Remove a cloud control object from the output device handler.
Boolean RemoveCloudControl(Murl.ICloudControl cloudControl)
cloudControl | The cloud control object to remove. |
Get a registered cloud control object.
Murl.ICloudControl GetCloudControl(Integer index)
index | The zero-based index of the control. |
Add a game-center control object to the output device handler.
Boolean AddGameCenterControl(Murl.IGameCenterControl gameCenterControl)
gameCenterControl | The game-center control object to add. |
Remove a game-center control object from the output device handler.
Boolean RemoveGameCenterControl(Murl.IGameCenterControl gameCenterControl)
gameCenterControl | The game-center control object to remove. |
Get a registered game-center control object.
Murl.IGameCenterControl GetGameCenterControl(Integer index)
index | The zero-based index of the control. |
Add a system-dialog control object to the output device handler.
Boolean AddSystemDialogControl(Murl.ISystemDialogControl systemDialogControl)
systemDialogControl | The system-dialog control object to add. |
Remove a system-dialog control object from the output device handler.
Boolean RemoveSystemDialogControl(Murl.ISystemDialogControl systemDialogControl)
systemDialogControl | The system-dialog control object to remove. |
Get a registered system-dialog control object.
Murl.ISystemDialogControl GetSystemDialogControl(Integer index)
index | The zero-based index of the control. |
Add a system-font control object to the output device handler.
Boolean AddSystemFontControl(Murl.ISystemFontControl systemFontControl)
systemFontControl | The system-font control object to add. |
Remove a system-font control object from the output device handler.
Boolean RemoveSystemFontControl(Murl.ISystemFontControl systemFontControl)
systemFontControl | The system-font control object to remove. |
Get a registered system-font control object.
Murl.ISystemFontControl GetSystemFontControl(Integer index)
index | The zero-based index of the control. |
Add a web control object to the output device handler.
Boolean AddWebControl(Murl.IWebControl webControl)
webControl | The web control object to add. |
Remove a web control object from the output device handler.
Boolean RemoveWebControl(Murl.IWebControl webControl)
webControl | The web control object to remove. |
Get a registered web control object.
Murl.IWebControl GetWebControl(Integer index)
index | The zero-based index of the control. |
Add a screen-shot control object to the output device handler.
Boolean AddScreenshotControl(Murl.IScreenshotControl screenshotControl)
screenshotControl | The screen-shot control object to add. |
Remove a screen-shot control object from the output device handler.
Boolean RemoveScreenshotControl(Murl.IScreenshotControl screenshotControl)
screenshotControl | The screen-shot control object to remove. |
Get a registered screen-shot control object.
Murl.IScreenshotControl GetScreenshotControl(Integer index)
index | The zero-based index of the control. |
Add a preferences control object to the output device handler.
Boolean AddPreferencesControl(Murl.IPreferencesControl preferencesControl)
preferencesControl | The preferences control object to add. |
Remove a preferences control object from the output device handler.
Boolean RemovePreferencesControl(Murl.IPreferencesControl preferencesControl)
preferencesControl | The preferences control object to remove. |
Get a registered preferences control object.
Murl.IPreferencesControl GetPreferencesControl(Integer index)
index | The zero-based index of the control. |
Add a telephony control object to the output device handler.
Boolean AddTelephonyControl(Murl.ITelephonyControl telephonyControl)
telephonyControl | The telephony control object to add. |
Remove a telephony control object from the output device handler.
Boolean RemoveTelephonyControl(Murl.ITelephonyControl telephonyControl)
telephonyControl | The telephony control object to remove. |
Get a registered telephony control object.
Murl.ITelephonyControl GetTelephonyControl(Integer index)
index | The zero-based index of the control. |
Add a media control object to the output device handler.
Boolean AddMediaControl(Murl.IMediaControl mediaControl)
mediaControl | The media control object to add. |
Remove a media control object from the output device handler.
Boolean RemoveMediaControl(Murl.IMediaControl mediaControl)
mediaControl | The media control object to remove. |
Get a registered media control object.
Murl.IMediaControl GetMediaControl(Integer index)
index | The zero-based index of the control. |
Add a music player control object to the output device handler.
Boolean AddMusicPlayerControl(Murl.IMusicPlayerControl musicPlayerControl)
musicPlayerControl | The music player control object to add. |
Remove a music player control object from the output device handler.
Boolean RemoveMusicPlayerControl(Murl.IMusicPlayerControl musicPlayerControl)
musicPlayerControl | The music player control object to remove. |
Get a registered music player control object.
Murl.IMusicPlayerControl GetMusicPlayerControl(Integer index)
index | The zero-based index of the control. |
Get the number of registered custom controls.
Integer GetNumberOfCustomControls()