alexboyer
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2014
05:40 PM
Detecting button focus
Hello,
Is there any way on the SpringBoard screen to detect button focus? Like if you have
Resume
Play from beginning
Go back
and the customer pressed the down arrow on the remote so now they're highlighting Play from beginning, but haven't clicked it yet, I'd like to be able to get the index of this.
My first thought was just to prepopulate an array index of available buttons and check it in isRemoteKeyPressed and just say if the current index equals the array count, keep it at the max, otherwise iterate one. I was hoping for a built-in method though.
Is there any way on the SpringBoard screen to detect button focus? Like if you have
Resume
Play from beginning
Go back
and the customer pressed the down arrow on the remote so now they're highlighting Play from beginning, but haven't clicked it yet, I'd like to be able to get the index of this.
My first thought was just to prepopulate an array index of available buttons and check it in isRemoteKeyPressed and just say if the current index equals the array count, keep it at the max, otherwise iterate one. I was hoping for a built-in method though.
1 REPLY 1
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2014
08:20 PM
Re: Detecting button focus
If you have more than two buttons on the springboard, if the user holds down the down or up on the remote it will auto-advance until they release the button.
It's reliable to check when they select an option, otherwise you get into timing issues and trying to code elaborate handling for what you're trying to do here which increases complexity and reduces return on your programming time investment.
A custom created springboard using roImageCanvas or roScreen would allow you the functionality you want - but again, takes longer to set up.
It's reliable to check when they select an option, otherwise you get into timing issues and trying to code elaborate handling for what you're trying to do here which increases complexity and reduces return on your programming time investment.
A custom created springboard using roImageCanvas or roScreen would allow you the functionality you want - but again, takes longer to set up.