mpwhitt
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2014
08:49 AM
Multiple button presses roGridScreen
I have a roGridScreen that leads to a roSpringboardScreen. If press the "OK" button multiple times (while on the grid screen), the springboard screen is shown, however, when I try to go back to the grid screen, the app immediately diverts back to the springboard screen as many times as I pressed the "OK" button. How can this behavior be avoided? Thanks.
2 REPLIES 2

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2014
11:37 AM
Re: Multiple button presses roGridScreen
Best is to launch the springboard immediately on keypress so the user doesn't feel like they are hitting "OK" and nothing is happening.
Beyond that, I think you can "drain" the message port:
- Joel
Beyond that, I think you can "drain" the message port:
while port.getmessage() ="roGridScreenEvent"
end while
- Joel
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2014
05:04 PM
Re: Multiple button presses roGridScreen
"RokuJoel" wrote:
Beyond that, I think you can "drain" the message port:while port.getmessage() ="roGridScreenEvent"
end while
Couple of bugs there - both with insidious potential, it seems to me:
while type(port.PeekMessage()) = "roGridScreenEvent":
port.GetMessage()
end while