Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by dissidently · Mar 22, 2011 at 02:04 PM · inputplaykey

what are the input codes for Sony Xperia Play keys?

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

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by jashan · Apr 07, 2011 at 05:01 PM

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 :-(

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image dissidently · Apr 07, 2011 at 09:56 PM 0
Share

I found that article earlier today too. thanks. I'm going to need get me one to do testing. What a shame.

avatar image jashan · Apr 08, 2011 at 08:15 AM 0
Share

$$anonymous$$eanwhile, colargol also answered my question on the Unity forums with a link to a really nice tutorial which has all the information (this links to the forum posting): http://forum.unity3d.com/threads/84809-Xperia-Play-$$anonymous$$eycodes-in-Unity

avatar image NewfieJoe · Jun 30, 2011 at 04:17 AM 0
Share

They offer 30 day loaners to devs. Just pay shipping and handling. You'll need a credit card for that as well as for a "preauthorization" for the price of the device in case you don't return it.

avatar image
1
Best Answer

Answer by Nicolaj Schweitz · Apr 18, 2011 at 08:23 AM

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

  • Angry Mob Games made a Tutorial about it.
  • Even More Info on Jashan's forum thread.
  • ... and the other thread :-)

Oh... and rumors has it that an official tutorial is landing in the Asset Store at some point.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Run Sprint animation and stop it when button is released 1 Answer

key remaping menu 0 Answers

Check the latest key pressed? 2 Answers

troubles with changing scenes 3 Answers

Toggling with a key not working 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges