Search Unity

Input A B C D ?

Discussion in 'Samsung Smart TV' started by gboulard, Sep 3, 2014.

  1. gboulard

    gboulard

    Joined:
    Nov 28, 2012
    Posts:
    21
    Hello,
    i can't figure out how to detect A,B,C,D keys from Standard Remote or Smart Control.


    Currently, i could only detect those :

    remote arrows keys :
    KeyCode.DownArrow
    KeyCode.UpArrow
    KeyCode.RightArrow
    KeyCode.LeftArrow

    remote return :
    KeyCode.Escape

    remote enter:
    KeyCode.Return

    i used this [hackish] piece of code, but nothing is displayed in the log :(
    Code (CSharp):
    1.  
    2. for(int c=1;c<=(int)KeyCode.Joystick4Button19;++c)
    3. {
    4.     if(Input.GetKeyDown((KeyCode)c))
    5.     {
    6.         Debug.Log (((KeyCode)c).ToString());
    7.     }
    8. }
    any advice?
     
  2. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    Hi,

    The colored A,B,C,D keys are not accessible. Some country remotes do not have these keys, so they are not exposed to Unity.
     
  3. gboulard

    gboulard

    Joined:
    Nov 28, 2012
    Posts:
    21
    that's a shame...

    any other keys we can use, or are we limited to arrows/return/enter only ?
     
  4. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    With the smart remote you get access to touchpad / gyro. There is more information in the documentation here. There is also an input sample showing how to get all different types of input.