Forum Discussion

bobdole's avatar
bobdole
Visitor
12 years ago

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!

2 Replies

  • msg.GetIndex() will tell you which key was pressed. 10 is the one you're looking for...
  • Thanks, I overlooked that in the docs, that was what I needed.