My Controller isnt recognized

mattehrmattehr Posts: 2Member
So the docs say if I have a controller that isn't recognized I should post on the forums.

Its a usb adapter for a playstation 2 controller. Have been using it for years. Unity itself recognizes it through Input.GetButton(), but through OuyaInputManager.GetButton() i get nothin.

In OuyaExampleCommon line 600 the joystick name is reported as: "PS to USB convert cable". I'd add a mapping for it but I really don't want to edit the plugin code.

Anyways I'm more worried that I'm missing something on ouya input handling.. I would have expected the OuyaINputManager to map my generic buttons to known ouya button codes. Maybe I don't get it..

Comments

  • Killa_MaakiKilla_Maaki Posts: 504Member
    Different controllers have different input mappings. It's just a fact of life, unfortunately.
    If the OUYA Input Manager doesn't have a mapping for it, it simply won't work.
    One thing to try: On line 449 in OuyaInputManager you should see:

    case "B":

    try just before that line, adding:

    case "PS TO USB CONVERT CABLE":

    Which should map it to PS2 controller type.
    You didn't remember the plot of the Doctor Who movie because there was none; Just a bunch of plot holes strung together.
  • mattehrmattehr Posts: 2Member
    Yea that was my plan, however changing the plugin code will make it more challenging to update it when future versions are released.

    Will probably just map it myself but wanted to make sure I was clear on what OuyaInputManager.GetButton provides vs regular Input.GetButton

    with OuyaInputManager.GetButton it doesnt seem to see the events from my controller on the pc, where Input.GetButton sees events from both (with different mappings).

    Clearly I am doing something wrong because I would expect OuyaInputManager to at least fire something for both controllers.

    I am using the following code to test this:

    ----------------------------------------
    if (Input.GetButton("Action")) { Debug.Log("Action");}

    if (OuyaInputManager.GetButton("Action", OuyaSDK.OuyaPlayer.player1)) {Debug.Log("OAction");}
    -------------------------------------

    Only the first case is firing.


Sign In or Register to comment.