Author Topic: Xperia Play Controls in Retroarch  (Read 4665 times)

Offline snapuswip3

  • byte
  • *
  • Posts: 30
    • View Profile
Xperia Play Controls in Retroarch
« on: June 20, 2013, 04:29:22 AM »
Squarepusher needs help from a developer with an Xperia Play in order to fix the controls in the new builds of Retroarch:

http://forum.themaister.net/viewtopic.php?id=235&p=16

Whilst I have an Xperia Play and would love to use it for Retroarch, I know nothing about programming...

Posting here as I was first brought here by the Xperia Play support in Mupen64AE, whilst N64oid ignored it.

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3495
  • Developer
    • View Profile
    • PaulsCode.Com
Re: Xperia Play Controls in Retroarch
« Reply #1 on: June 21, 2013, 08:23:49 AM »
Supporting the Xperia Play is quite simple (the sample code provided by Sony Ericsson has pretty much everything you need).  The only potential sticking point is that it utilizes NativeActivity, which limits your app to Android 2.3 or later.  It is possible to check the android version and if the device is an Xperia Play and only use NativeActivity + Xperia Play native library when applicable, but it takes a lot more logic in the code.  I'm happy to provide advice for anyone who wants to tackle it, and of course Mupen64Plus AE is open-source so you can use it for reference and copy what you need.

--EDIT-- Ah, just read the post.. seems Squarepusher already has support for the Xperia Play built in, and it is just broken by some commit.  I don't own an Xperia Play myself, so I won't be able to do the git bisect for him.
« Last Edit: June 21, 2013, 08:51:21 AM by Paul »
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline littleguy

  • Developer
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: Xperia Play Controls in Retroarch
« Reply #2 on: June 23, 2013, 10:15:34 AM »
I'll take a look, I have an xperia play.

Edit: That's a long thread... where should I look?

Edit: I'm an idiot, you linked right to it.  I'll take a read....
« Last Edit: June 23, 2013, 10:17:05 AM by littleguy »
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline littleguy

  • Developer
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: Xperia Play Controls in Retroarch
« Reply #3 on: June 25, 2013, 05:41:18 PM »
It's fixed now.  Kudos for tracking us down to help.  :)
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version