vrihlea
9 years agoVisitor
base library bslCore.brs
https://sdkdocs.roku.com/display/sdkdoc/Component+Architecture#ComponentArchitecture-v30/bslCore.brs
there are two methods in there that caught my attention:
- bslBrightScriptErrorCodes()
- bslUniversalControlEventCodes()[/font][/color]
a) Is there a way to get the button-press event before it gets to the "onKeyEvent()" in the component ?
one usecase for this would be to disable the quick-play (or the remote) so that it won't be possible to press it multiple times
b)
what would be a possible use-case for bslBrightScriptErrorCodes() ?[/font][/color]
there are two methods in there that caught my attention:
- bslBrightScriptErrorCodes()
- bslUniversalControlEventCodes()[/font][/color]
a) Is there a way to get the button-press event before it gets to the "onKeyEvent()" in the component ?
one usecase for this would be to disable the quick-play (or the remote) so that it won't be possible to press it multiple times
b)
screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
screen.setMessagePort(m.port)
' ...
while(true)
msg = wait(0, m.port)
' the roku-remote events are not handled here so what's the point in bslUniversalControlEventCodes()
what would be a possible use-case for bslBrightScriptErrorCodes() ?[/font][/color]