Forum Discussion

ljunkie's avatar
ljunkie
Visitor
12 years ago

roGridScreenEvent - isRemoteKeyPressed()

On the grid screen I have tested and read that isRemoteKeyPressed() does not give all the key presses as it seems to all be handled internally. Please correct me if I am wrong. If this is wrong, then the reat of my questions are not applicable.

I would like to know when an items focus has changed instead of knowing when an item has been focused (isListItemFocused) - is this possible?

I have worked with timers on the isListItemFocused() event as a workaround, however it's not clean and there are two issue big issues with this.
1) if one holds the button down initially, isListItemFocused() is never called (make sense, but how do I know they clicked a button?)
2) if one clicks right once, and then holds down the button, I can know the initially focus happend, but I can't tell if the end user is still scrolling.

I hope this makes sense. I am basically trying to key off of an inital keypress, specifically the d-pad and fwd/rwd buttons on a GridScreen.

Thanks!

6 Replies

  • Anyone? I am guessing the amazon channel is either not using a normal grid screen anymore or some undocumented feature. You can see it in action when you view movies on a grid screen. When you scroll, click left/right/up/down, the description box will hide. As you can see it hides before it focuses on the next item, so they are in someway noticing the keypress on the remote.
  • "ljunkie" wrote:
    Anyone? I am guessing the amazon channel is either not using a normal grid screen anymore or some undocumented feature. You can see it in action when you view movies on a grid screen. When you scroll, click left/right/up/down, the description box will hide. As you can see it hides before it focuses on the next item, so they are in someway noticing the keypress on the remote.


    I think that's related to the grid style they're using. That's not their BRS intercepting an event.

    Which keys raise isRemoteKeyPressed() varies by screen type. Generally only keys not handled by the firmware raise the event.
  • "RokuChris" wrote:
    "ljunkie" wrote:
    Anyone? I am guessing the amazon channel is either not using a normal grid screen anymore or some undocumented feature. You can see it in action when you view movies on a grid screen. When you scroll, click left/right/up/down, the description box will hide. As you can see it hides before it focuses on the next item, so they are in someway noticing the keypress on the remote.


    I think that's related to the grid style they're using. That's not their BRS intercepting an event.

    Which keys raise isRemoteKeyPressed() varies by screen type. Generally only keys not handled by the firmware raise the event.


    I definitely understand the available keys per screen type varies, that's why I am wondering how they were able to do this. Is this a documented grid style? I am not seeing anything in the SDK about it. Thanks.
  • "ljunkie" wrote:
    I definitely understand the available keys per screen type varies, that's why I am wondering how they were able to do this. Is this a documented grid style? I am not seeing anything in the SDK about it. Thanks.


    I'm pretty sure the mixed-aspect-ratio grid hides/shows the BoB when focus changes because its position changes when moving between rows with different size posters. It's done by the firmware, there's no special BRS code making it happen.

    http://sdkdocs.roku.com/display/sdkdoc/ ... ringasVoid
  • "RokuChris" wrote:
    "ljunkie" wrote:
    I definitely understand the available keys per screen type varies, that's why I am wondering how they were able to do this. Is this a documented grid style? I am not seeing anything in the SDK about it. Thanks.


    I'm pretty sure the mixed-aspect-ratio grid hides/shows the BoB when focus changes because its position changes when moving between rows with different size posters. It's done by the firmware, there's no special BRS code making it happen.

    http://sdkdocs.roku.com/display/sdkdoc/ ... ringasVoid

    In my experience, it only hides/reshows the BoB when changing rows with different aspect ratios. I'm not sure how Amazon accomplishes the hide/reshow on every focus change, even within the same row.
  • Yea, the first thing I checked was the mixed-aspect-ratio. It does not hide the BoB. I am guessing this must be an undocumented feature.