RuslanZS / doom-android

Automatically exported from code.google.com/p/doom-android
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Please could you support Gingerbread devices with gaming controls e.g. Xperia Play #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please could you support Android Gingerbread devices with gaming controls e.g. 
Xperia Play:
http://developer.android.com/reference/android/view/KeyEvent.html

Xperia Play controls are:
KEYCODE_DPAD_UP 
KEYCODE_DPAD_DOWN   
KEYCODE_DPAD_LEFT   
KEYCODE_DPAD_RIGHT  
KEYCODE_DPAD_CENTER (cross)
KEYCODE_BACK (circle - you need to also check that Alt is pressed - 
event.isAltPressed() )
KEYCODE_BUTTON_X (square)   
KEYCODE_BUTTON_Y (triangle)  
KEYCODE_BUTTON_SELECT
KEYCODE_BUTTON_START
KEYCODE_BUTTON_L1
KEYCODE_BUTTON_R1   
KEYCODE_VOLUME_UP   
KEYCODE_VOLUME_DOWN

There is also a touchpad on the device, but getting just the keys to work would 
be great.

Original issue reported on code.google.com by andrew.d...@gmail.com on 12 May 2011 at 1:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
More info about how to develop for the Xperia Play gamepad:
http://developer.sonyericsson.com/wportal/devworld/technology/android/xperiaplay
/overview?cc=gb&lc=en
http://blogs.sonyericsson.com/wp/2011/02/13/xperia-play-game-keys/

Original comment by andrew.d...@gmail.com on 5 Jul 2011 at 8:43