bobdole
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2013
09:17 PM
roListScreenEvent detect keypress
How might I determine when the Astrisk button has been pressed when a user is viewing an roListScreen? With the code snippet below I can tell that a button was pressed, but haven't found which function to call to determine which.
while (true)
msg = wait(500, port)
if (type(msg) = "roListScreenEvent") then
if (msg.isRemoteKeyPressed()) then
print "Remote Key Pressed"
end if
end if
end while
Thanks!
while (true)
msg = wait(500, port)
if (type(msg) = "roListScreenEvent") then
if (msg.isRemoteKeyPressed()) then
print "Remote Key Pressed"
end if
end if
end while
Thanks!
2 REPLIES 2

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2013
09:23 PM
Re: roListScreenEvent detect keypress
msg.GetIndex() will tell you which key was pressed. 10 is the one you're looking for...
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
bobdole
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2013
09:16 PM
Re: roListScreenEvent detect keypress
Thanks, I overlooked that in the docs, that was what I needed.