Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bobdole
Visitor

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!
0 Kudos
2 REPLIES 2
TheEndless
Channel Surfer

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)
0 Kudos
bobdole
Visitor

Re: roListScreenEvent detect keypress

Thanks, I overlooked that in the docs, that was what I needed.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.