0

red, green, yellow, and blue key

Hi Yahoo,

Now I am using WDK 0.9.6-23 framework in my project. My client told that Yahoo would support red, green, yellow, and blue key for this new framework, but I found in YWE_Developer_Guide.pdf and did not see any document for their keys. Please help me to solve this problem. sad.gif sad.gif sad.gif sad.gif sad.gif sad.gif sad.gif sad.gif sad.gif

Thanks,
Hoa Tat.

by
17 Replies
  • Here's a short code sample:

    CODE
    function myKeyHandler(event) {
    // event.payload.color = which color pressed
    }

    myKeyHandler.subscribeTo(KONtx.application, "onColorKeyPress");


    Please note, at this time you don't have access to the red button, only yellow, green, and blue and only when in fullscreen state.

    -Jeremy
    0
  • Hi Jeremy,

    Sorry for your bother again.
    Can not I catch "onColorKeyPress" event? It did not understand, but I changed "onColorKeyPress" event to "onWidgetKeyPress" event was OK.
    Besides, I don't want to use "onWidgetKeyPress" event because of project's effect. I only want to catch yellow, green, and blue key.

    Thanks and Regards,
    Hoa Tat.
    0
  • Hello Hoa,

    Yes, you need to be catching onColorKeyPress, not onWidgetKeyPress ideally. Are you using the 0.9.6-23 WDK?

    -Jeremy
    0
  • QUOTE (Jeremy Johnstone @ Aug 10 2009, 01:16 PM) <{POST_SNAPBACK}>
    Hello Hoa,

    Yes, you need to be catching onColorKeyPress, not onWidgetKeyPress ideally. Are you using the 0.9.6-23 WDK?

    -Jeremy


    Hi Jeremy,

    Yes, I am using the 0.9.6-23 WDK.

    Thanks and Regards,
    Hoa Tat.
    0
  • QUOTE (tatquanghoa @ Aug 10 2009, 06:51 PM) <{POST_SNAPBACK}>
    Hi Jeremy,

    Yes, I am using the 0.9.6-23 WDK.

    Thanks and Regards,
    Hoa Tat.


    So is it working then for you? I've seen a demonstration by your boss of the widget, so is that using the right event or the onWidgetKeyPress event?

    -Jeremy
    0
  • QUOTE (Jeremy Johnstone @ Aug 13 2009, 09:05 AM) <{POST_SNAPBACK}>
    So is it working then for you? I've seen a demonstration by your boss of the widget, so is that using the right event or the onWidgetKeyPress event?

    -Jeremy


    Hi Jeremy,

    Yes, it is working and using the onWidgetKeyPress. But I only want to use the right event(onColorKeyPress) because of my project effect.
    Can you give me a single example about onColorKeyPress event?

    Thanks and Regards,
    Hoa Tat.
    0
  • QUOTE (Jeremy Johnstone @ Aug 13 2009, 09:05 AM) <{POST_SNAPBACK}>
    So is it working then for you? I've seen a demonstration by your boss of the widget, so is that using the right event or the onWidgetKeyPress event?

    -Jeremy


    Hi Jeremy,

    Yes, it is working and using the onWidgetKeyPress. But I only want to use the right event(onColorKeyPress) because of my project effect.
    Can you give me a single example about onColorKeyPress event?

    Thanks and Regards,
    Hoa Tat.
    0
  • QUOTE (Jeremy Johnstone @ Aug 13 2009, 09:05 AM) <{POST_SNAPBACK}>
    So is it working then for you? I've seen a demonstration by your boss of the widget, so is that using the right event or the onWidgetKeyPress event?

    -Jeremy


    Hi Jeremy,

    Yes, it is working and using the onWidgetKeyPress. But I only want to use the right event(onColorKeyPress) because of my project effect.
    Can you give me a single example about onColorKeyPress event?

    Thanks and Regards,
    Hoa Tat.
    0
  • QUOTE (tatquanghoa @ Aug 13 2009, 07:25 PM) <{POST_SNAPBACK}>
    Hi Jeremy,

    Yes, it is working and using the onWidgetKeyPress. But I only want to use the right event(onColorKeyPress) because of my project effect.
    Can you give me a single example about onColorKeyPress event?

    Thanks and Regards,
    Hoa Tat.



    A sample was given in the email which went out to you. Did you not get that?

    -Jeremy
    0
  • QUOTE (Jeremy Johnstone @ Aug 31 2009, 08:32 AM) <{POST_SNAPBACK}>
    A sample was given in the email which went out to you. Did you not get that?

    -Jeremy


    Hi Jemery,

    No, I did not. My email address is daita999@yahoo.com. I hope you send the sample to me again.

    Thanks and Regards,
    Hoa Tat.
    0
  • Up with he same problem.

    CODE
    var opusHD_SliderView = new KONtx.Class({
    ClassName: 'SliderView',

    Extends: KONtx.system.FullscreenView,

    initialize:function(){
    this.parent();

    this._myKeyHandler.subscribeTo(KONtx.application, "onColorKeyPress");
    },

    _myKeyHandler
    })
    0
  • sorry... try again:

    CODE
    var opusHD_SliderView = new KONtx.Class({
    ClassName: 'SliderView',

    Extends: KONtx.system.FullscreenView,

    initialize:function(){
    this.parent();

    this._myKeyHandler.subscribeTo(KONtx.application, "onColorKeyPress");
    },

    _myKeyHandler:function(event) {
    log(event.payload.color);
    }
    })


    WDK: 0.9.7.6

    Thanks!
    0
  • QUOTE (vova.leskiv @ Oct 23 2009, 05:45 AM) <{POST_SNAPBACK}>
    sorry... try again:

    CODE
    var opusHD_SliderView = new KONtx.Class({
    ClassName: 'SliderView',

    Extends: KONtx.system.FullscreenView,

    initialize:function(){
    this.parent();

    this._myKeyHandler.subscribeTo(KONtx.application, "onColorKeyPress");
    },

    _myKeyHandler:function(event) {
    log(event.payload.color);
    }
    })


    WDK: 0.9.7.6

    Thanks!


    Same problem. Any update on this?
    0
  • QUOTE (hriuki @ Feb 10 2010, 02:57 AM) <{POST_SNAPBACK}>
    Same problem. Any update on this?

    Here's the link: http://developer.yahoo.net/forum/index.php?showtopic=3910
    0
  • QUOTE (Steve @ Feb 10 2010, 03:29 AM) <{POST_SNAPBACK}>
    Here's the link: http://developer.yahoo.net/forum/index.php?showtopic=3910


    Thank you!

    As far as I understand all this won't work on TVs with the older platform. Is there any other way to handle color button key press that would work on all platform versions?

    Thanks,
    Tim
    0
  • QUOTE (hriuki @ Feb 10 2010, 10:04 AM) <{POST_SNAPBACK}>
    As far as I understand all this won't work on TVs with the older platform. Is there any other way to handle color button key press that would work on all platform versions?


    No. (sorry I can't add more color, just the answer is really no, not possible)

    -Jeremy
    0
  • Jeremy posted in similar thread that staff didn't work in simulator. Only in TV with Framework 1.2 version.
    0

Recent Posts

in General - Yahoo! TV Widgets