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
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.
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.