system
1
Are there going to be input key codes for the Xperia Play by Sony?
Left Hand:
Left, Right, Up, Down
Left Shoulder
Right Hand:
Triangle, Circle, Cross, Square
Right Shoulder
Function:
Select, Start.
And RAW data from the "thumb tabs"?
Here's a pic for anyone not familiar with a PS controller.
http://www.eurodroid.com/pics/xperia_play_2.png
jashan
2
Not a full answer but the only information I found so far:
How to develop gaming apps using the Xperia PLAY gamepad
Also, using Input.GetKey("left") works (as does "up", "down" and "right", of course).
But aside of that, I'm hoping to get some more info soon ... because trying to figure out the keycodes via:
public void OnGUI() {
if (Event.current.isKey)
Debug.Log(string.Format("Key pressed: {0}", Event.current.keyCode));
}
didn't work for me :-(
Xperia Play Keycodes in Unity
Input.GetKey (KeyCode.LeftShift) = Left shoulder
Input.GetKey (KeyCode.RightShift) = Right shoulder
Input.GetKey (KeyCode.UpArrow) = Up
Input.GetKey (KeyCode.LeftArrow) = Left
Input.GetKey (KeyCode.RightArrow) = Right
Input.GetKey (KeyCode.DownArrow) = Down
Input.GetKey ("joystick button 2") = /\
Input.GetKey ("joystick button 1") = []
Input.GetKey ("joystick button 3") = O
Input.GetKey ("joystick button 0") = X
Input.GetKey (KeyCode.Pause) = SELECT
Input.GetKey (KeyCode.Return) = START
AndroidInput = TouchPad
Oh... and rumors has it that an official tutorial is landing in the Asset Store at some point.