Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
developersdevelopers
Old
(Last edited by developersdevelopers; 1st March 2012 at 12:26 AM.)
#1  
Senior Member - OP
Thanks Meter 32
Posts: 148
Join Date: May 2011
Default [GUIDE] USB Gaming on Nexus S

Greetings,

The purpose of this post/thread is to describe how to use a USB gaming controller on the Nexus S, which is now possible thanks to the work of fellow XDA member sztupy. Before proceeding, I highly recommend that you read his Galaxy S thread, especially the first few posts (http://forum.xda-developers.com/show....php?t=1450298).

First, some demonstrations:
Using USB Host Controller app and Super Mario 64
Batman: Arkham City
Metro 2033
Dirt 3

DISCLAIMER: I take no responsibility for any damage you do to your phone.

1.) FLASH KERNEL AND DOWNLOAD APP

First things first, you will need ICS and to flash a kernel that has USB OTG support in it. At the time of this posting, some kernels with USB OTG are:

-steve.garon’s kernel (http://forum.xda-developers.com/show....php?t=1427352)
-mathkid95’s Matr1x kernel (http://forum.xda-developers.com/show....php?t=1361477)
-Ezekeel's GLaDoS kernel (http://forum.xda-developers.com/show....php?t=1336529)

If you do not know how to flash a kernel, please Google it. You will also need to download sztupy’s app “USB Host Controller” (https://market.android.com/details?i...hostcontroller).

2.) ACQUIRE USB CONTROLLER

Next, you will need a supported USB controller. The following should work:

-wired Xbox 360 controller
-Logitech DualAction controller
-Logitech WingMan RumblePad
-wireless Xbox 360 controller WITH wireless receiver
-wired Sony Playstation 3 controller (not yet tested)
...probably many others


3.) OTG SET UP

Thirdly, you’ll need a working USB OTG set up. Sztupy’s thread shows you a few ways of accomplishing this. Below is a (crappy) diagram of MY current working set up.

http://dl.dropbox.com/u/15806590/diagram2.png

I think this is the best set up because you don't have to buy any fancy OTG cables or USB hubs. But that's just my opinion.

In terms of the order for connecting things, I find it works best if you connect the phone LAST.

4.) FINAL STEPS

Once everything is connected, open up the “USB Host Controller” app, select the “Settings” pane, and set the Operation Mode to “Auto-host” (if you are using a set up that involves an OTG connector/cable, then you'll likely need to select OTG mode instead). If everything went right, the app will close automatically and you should be able to navigate your phone with the controller. You are now ready to game!

Just a note with the 360 controller. The middle button will always flash on and off, and will not stay lit on one quarter of the circle as on an actual Xbox. AFAIK there's no way to fix this (unless you use tape heh).
The Following 5 Users Say Thank You to developersdevelopers For This Useful Post: [ Click to Expand ]
 
developersdevelopers
Old
(Last edited by developersdevelopers; 3rd February 2012 at 09:19 PM.)
#2  
Senior Member - OP
Thanks Meter 32
Posts: 148
Join Date: May 2011
Games/Apps TESTED & WORKING: (This list is not meant to be comprehensive, and will be occasionally updated)

Note: Pretty much any app/game that supports button remapping (such as emulators) should work

Emulators

-nes.emu
-SNES 9X EX
-N64oid (the right analog stick is not functional)
-Mame4droid
-FrodoC64USB
-Mupen64Plus AE
-FPse

Native/Regular Android Games

-Shadowgun
-Grand Theft Auto 3
-Samurai II: Vengeance
-Riptide GP
-Meganoid
-Reckless Getaway
-Cordy
-EVAC HD
-Radiant HD
-Muffin Knight

Some (not all) of the Xperia Play compatible games will work too. See here for a comprehensive list of Xperia Play titles: http://forum.xda-developers.com/show....php?t=1217060

Other

-OnLive (!!! This means you can play the majority of onlive games that are game pad compatible)
 
dessi_007
Old
#3  
dessi_007's Avatar
Member
Thanks Meter 7
Posts: 53
Join Date: Dec 2011
thanks man i was thinking of a way to do this.
Device: Nexus S
Rom: JB AOKP KANG
Kernel: Matr1x 22.5


 
benoit2600
Old
#4  
benoit2600's Avatar
Member
Thanks Meter 27
Posts: 72
Join Date: Jun 2010
Location: France
This is amazing !
 
coolfranz
Old
#5  
Member
Thanks Meter 15
Posts: 83
Join Date: Jan 2011
I tested the Logitech Dual Action controller yesterday, it works also fine.
The Following User Says Thank You to coolfranz For This Useful Post: [ Click to Expand ]
 
sztupy
Old
#6  
sztupy's Avatar
Recognized Developer
Thanks Meter 814
Posts: 1,051
Join Date: Dec 2008
Location: London

 
DONATE TO ME
Hi! May I use your first diagram in my post too?
 
developersdevelopers
Old
#7  
Senior Member - OP
Thanks Meter 32
Posts: 148
Join Date: May 2011
Sure! Be my guest.
 
jcolinzheng
Old
#8  
Member
Thanks Meter 14
Posts: 68
Join Date: Dec 2010
Location: California / Massachusetts
Cool! 10 chars
 
developersdevelopers
Old
#9  
Senior Member - OP
Thanks Meter 32
Posts: 148
Join Date: May 2011
3 new gameplay videos added.
 
neoman4426
Old
#10  
Junior Member
Thanks Meter 0
Posts: 21
Join Date: Nov 2010
nice. any idea if this works with the controllers for the original Xbox? I have a modded Duke I use on the computer, just replaced the Xbox!usb male with a regular usb male, and would love to be able to use it on my Cappy. I know it works perfectly on the mainline Linux kernel, but I'm having no luck finding how the drivers were implemented in ICS. I can't test myself just yet, still waiting for the otg cable and download mode jig to come in.

 
Post Reply+
Tags
controller, games, otg, usb
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Preventing App Piracy: Join the Discussion

The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android … more

Jolla Sailfish OS Flagship Device Makes First Appearance

Given the amount of coverage that Android receives around here, you could almost be … more

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more