Initial visionLabs Roku scaffold
This commit is contained in:
15
source/main.brs
Normal file
15
source/main.brs
Normal file
@@ -0,0 +1,15 @@
|
||||
sub Main()
|
||||
screen = CreateObject("roSGScreen")
|
||||
port = CreateObject("roMessagePort")
|
||||
screen.SetMessagePort(port)
|
||||
|
||||
scene = screen.CreateScene("MainScene")
|
||||
screen.Show()
|
||||
|
||||
while true
|
||||
msg = wait(0, port)
|
||||
if type(msg) = "roSGScreenEvent" and msg.IsScreenClosed() then
|
||||
return
|
||||
end if
|
||||
end while
|
||||
end sub
|
||||
Reference in New Issue
Block a user