David Blume commited on 2020-05-06 22:25:57
Showing 4 changed files, with 13 additions and 1 deletions.
| ... | ... |
@@ -54,6 +54,8 @@ function init() |
| 54 | 54 |
r = m.top.findNode("updates_right_rect")
|
| 55 | 55 |
r.color = label_color |
| 56 | 56 |
|
| 57 |
+ m.logger = CreateObject("roLogger")
|
|
| 58 |
+ |
|
| 57 | 59 |
m.myTask = CreateObject("roSGNode", "MyTask")
|
| 58 | 60 |
m.myTask.ObserveField("updateText", "onUpdateText")
|
| 59 | 61 |
m.myTask.ObserveField("updateTextLower", "onUpdateTextLower")
|
| ... | ... |
@@ -90,6 +92,7 @@ function onUpdateText() as void |
| 90 | 92 |
m.updates.text = m.updates.text + chr(10) + m.myTask.updateText |
| 91 | 93 |
end if |
| 92 | 94 |
print m.myTask.updateText |
| 95 |
+ m.logger.logWithID("upperleft", m.myTask.updateText)
|
|
| 93 | 96 |
end function |
| 94 | 97 |
|
| 95 | 98 |
|
| ... | ... |
@@ -105,6 +108,7 @@ function updateTextLower(s as String) as void |
| 105 | 108 |
m.updates_lower_array.Push(s) |
| 106 | 109 |
m.updates_lower.text = m.updates_lower_array.Join(chr(10)) |
| 107 | 110 |
print s |
| 111 |
+ m.logger.logWithID("lowerleft", s)
|
|
| 108 | 112 |
end function |
| 109 | 113 |
|
| 110 | 114 |
|
| ... | ... |
@@ -115,6 +119,7 @@ function onUpdateTextRight() as void |
| 115 | 119 |
m.updates_right_array.Push(m.testTask.updateText) |
| 116 | 120 |
m.updates_right.text = m.updates_right_array.Join(chr(10)) |
| 117 | 121 |
print m.testTask.updateText |
| 122 |
+ m.logger.logWithID("right", m.testTask.updateText)
|
|
| 118 | 123 |
end function |
| 119 | 124 |
|
| 120 | 125 |
|
| ... | ... |
@@ -61,6 +61,8 @@ function executeTask() as void |
| 61 | 61 |
end if |
| 62 | 62 |
port = CreateObject("roMessagePort")
|
| 63 | 63 |
deviceInfo.SetMessagePort(port) |
| 64 |
+ input = CreateObject("roInput")
|
|
| 65 |
+ input.SetMessagePort(port) |
|
| 64 | 66 |
|
| 65 | 67 |
success = deviceInfo.EnableLinkStatusEvent(true) |
| 66 | 68 |
if not success m.top.updateTextLower = "EnableLinkStatusEvent failure" |
| ... | ... |
@@ -101,6 +103,9 @@ function executeTask() as void |
| 101 | 103 |
if v <> invalid then m.top.updateTextLower = dt + " appFocused " + v.toStr() |
| 102 | 104 |
v = aa.LookupCI("audioCodecCapabilityChanged")
|
| 103 | 105 |
if v <> invalid then m.top.updateTextLower = dt + " audioCodecCapabilityChanged " + v.toStr() |
| 106 |
+ elseif msgType = "roInputEvent" |
|
| 107 |
+ info = msg.GetInfo() |
|
| 108 |
+ m.top.updateTextLower = dt + " Input " + FormatJSON(info) |
|
| 104 | 109 |
else |
| 105 | 110 |
m.top.updateTextLower = dt + " msgType " + msgType |
| 106 | 111 |
end if |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
title=dxb |
| 2 | 2 |
major_version=0 |
| 3 | 3 |
minor_version=1 |
| 4 |
-build_version=0 |
|
| 4 |
+build_version=1 |
|
| 5 | 5 |
ui_resolutions=fhd |
| 6 | 6 |
mm_icon_focus_hd=pkg:/images/mm_icon_focus_hd.png |
| 7 | 7 |
mm_icon_focus_sd=pkg:/images/mm_icon_focus_sd.png |
| ... | ... |
@@ -11,3 +11,4 @@ dial_title=dxb |
| 11 | 11 |
dial_additional_data_registry_section=dial_dxb |
| 12 | 12 |
dial_additional_data_registry_key=additional_data |
| 13 | 13 |
splash_min_time=0 |
| 14 |
+supports_input_launch=1 |