How to pair a Wireless Xbox 360 Controller and fix Camera Spin

pitchdarkice

Senior Member
Dec 24, 2011
86
13
0
Hello guys :)

i`m new in this Forum :) :D

I have a problem with the fix. I watched this video on YouTube to fix the problem: /watch?v=9czISrLGXNI

But in my directory is no file that is called: Vendor_045e_Product_0291.kl

Could u please say me, where I can find the file or which name it have?
I reely want to play with my Xbox 360 controller :(


Greetings
-Xtremefunky
if you do not have the file, download it from the original post and copy it to the folder based on the instructions provided.

also the keymap file may help as well.
 
  • Like
Reactions: Xtremefunky

rootSr.

Member
Jan 2, 2014
26
0
21
Video that demonstrates the setup, show an example of the problem, the steps to solve the problem, and the working solution!!!
http://www.youtube.com/watch?v=9czISrLGXNI&hd=1


So first lets just talk about the Hardware Setup.

  • Xbox 360 Wireless Controller
  • OTG Cable.
  • Xbox 360 Wireless Dongle (This is meant for the PC but also works on the Android, and quite lovely on emulators)

This setup alone works well for allot of the emulators out there, however some of the games are not working with the controller, for instance GTA3 , Dead Trigger, Shadowgun and others. So by reading the logcat I was able to figure out a solution. Snippet of logcat below

--------------------
07-22 19:55:48.039 350 405 D EventHub: No input device configuration file found for device 'Xbox 360 Wireless Receiver'.
07-22 19:55:48.059 350 405 I EventHub: New device: id=4, fd=269, path='/dev/input/event3', name='
360 Wireless Receiver', classes=0x80000341, configuration='', keyLayout='/system/usr/keylayout/Generic.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=true, usingClockIoctl=false

<6>[ 117.819812] usb 2-1: new full speed USB device number 2 using tegra-ehci
<6>[ 117.873142] usb 2-1: New USB device found, idVendor=045e, idProduct=0719
<6>[ 117.873219] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[ 117.873337] usb 2-1: Product: Xbox 360 Wireless Receiver for Windows
<6>[ 117.873403] usb 2-1: Manufacturer: ©Microsoft
<6>[ 117.873518] usb 2-1: SerialNumber: FE425DB0
-------------------

So when i searched through the /system/usr/keylayout/ I saw there was a profile for the xbox 360 wired controller so I thought why not copy the profile and name it a wireless xbox controller. This idea worked. You name keylayouts by Vendor ID and Product ID which I also was able to get from the logcat. What is nice about this is I think we can use this to solve issues with other controllers as well, but I don't know of any that are also having problems.

For this solution a rooted Nexus 7 is required. I already have a step by step video on rooting if you need the help on the nexus 7. but after obtaining root you need to enter into the Android Shell (i was using Terminal Emulator for Android on the Nexus 7 downloaded from the google play store ) . I entered this commands to get this all setup.


  • su
  • cd /system/usr/keylayout/
  • mount -o remount,rw /system
  • cp Vendor_045e_Product_0291.kl Vendor_045e_Product_0719.kl
  • chmod 644 Vendor_045e_Product_0291.kl
  • chmod 644 Vendor_045e_Product_0719.kl
  • exit
  • exit

Restart System and Enjoy!!!!

UPDATE 2
I attached the Key Character Mapping file as well. This is found in /system/usr/keychars . For nexus 7 users this isn't necessary but some other devices have different generic .kcm so this is needed (in the process of being confirmed) PLEASE NOTE THE .KCM Extension

UPDATE
Some of you do not have the Keylayout file for even the USB Xbox Controller, I am attaching the file (it needs to be unzipped), you will need to paste it into the /system/usr/keylayout/ folder. You also could rename this to the Wireless Xbox Controller Vendor and Product ID and copy it 'Vendor_045e_Product_0719' .
Update 2: When copying the file you still need to mount the Systems folder using the command listed above: "mount -o remount,rw /system" and also remember to modify its priveledges using the
"chmod 644 Vendor_045e_Product_0291.kl"
PLEASE NOTE THE .KL EXTENSION FOR THIS FILE
Can I use same procedure and files to play using wireless controller for Nexus 5?
 

user777

New member
Jan 16, 2014
1
0
0
found my vendor id and Pid

Hello all,

Many thanks to OP, got my *unofficial* controller working just fine!

A bit more info:
- I bought an unofficial, Afterglow AX.1 controller (exactly same layout as xbox controller)
- I connected it to PC and used USBView to check its Product ID and Vendor ID
(I couldn't get any logcat to work at all)
- I copied the original xbox controller .kl file (see OP), renamed it to suit my controller
Vendor_045e_Product_0291.kl to Vendor_0e6f_Product_0113.kl
- Copied both files into /system/usr/keylayout/
- Changed priv's to 644
- Rebooted and worked fine!

Note, when playing Shadowgun, I could not start the app with controller connected as it would not open, I had to connect the controller just before the loading screen :)s)

---------- Post added at 05:56 PM ---------- Previous post was at 05:50 PM ----------



What controller are you using?
I suggested downloading USBView and checking the Product ID and Vendor ID just to be certain.

Once you have those, take the original .kl file from OP, make a copy and rename it to reflect your controller.
Put them both in /system/usr/keylayout/ and give them chmod 644 (as per OP instructions)
Reboot device.
hi found my Product ID and Vendor ID
idVendor: 0x0E6F
idProduct: 0x0213
what is the files i do need to make that ids games pad to work on my s3 i9305???
thx
what i have to do ?? what OP mean ???
 
Last edited:

sassinapoli

Senior Member
May 5, 2010
514
72
0
I have wired xbox pad.
I put two unzipped files in system/usr/keylayout but the pad doesn't work well.
I also renamed kcm in kl.
I have galaxy s3 4.3
Thx

Inviato dal mio GT-I9300 utilizzando Tapatalk
 

sassinapoli

Senior Member
May 5, 2010
514
72
0
Add: i found my device id and product. I have the kl file with right name.
But when i connect my xbox360 wired controller the led flashing and the buttons dont work any buttons. .
Help :(

Inviato dal mio GT-I9300 utilizzando Tapatalk
 

sassinapoli

Senior Member
May 5, 2010
514
72
0
Add: i found my device id and product. I have the kl file with right name.
But when i connect my xbox360 wired controller the led flashing and the buttons dont work any buttons. .
Help :(

Inviato dal mio GT-I9300 utilizzando Tapatalk
Solved. Stock kernel doesn't support wired x360 controller. I flashee boeffla, actived xbox module and it works very well
I hope my story can be usefull for something!

Inviato dal mio GT-I9300 utilizzando Tapatalk
 

spcano01

Member
Mar 8, 2011
7
0
0
My XBOX 360 wireless controller works, but where can I configure what each of the buttons DO in Android and in other apps *like XBMC*? I opened both files, and it appears you should be able to change things, but I couldn't make heads or tales of it. For instance, in android - X acts like "Select/Enter". But in XBMC, A does that. I would love to map triggers to page up/down, and rework the buttons. Any assistance?
 

iNeMu

New member
Mar 8, 2014
3
0
0
I have the XBox Wireless Controller and that's my way.

I've copied the files via Solid Explorer into /system/usr/keylayout and /system/usr/keychars

In Terminal

# su
# cd /system/usr/keylayout
# mount -o remount,rw /system
# chmod 644 Vendor_045e_Product_0291.kl
# chmod 644 Vendor_045e_Product_0719.kl
# chmod 644 Xbox_360_Wireless_Receiver.gl
# exit
# exit

Restart

Terminal again.

# su
# cd /system/usr/keychars
# mount -o remount,rw /system
# chmod 644 Vendor_045e_Product_0291.kcm
# chmod 644 Vendor_045e_Product_0719.kcm
# exit
# exit

Restart

It doesn't work anything with the Controller on my device.

The Controller is listed in USB Host Controller
USB/BT Joystick Center says "No devices found"

OTG Cable works fine with USB Storages and Keyboard/Mouse

My device
Prestigio Multipad 7.0 Ultra+ *root*
Jelly Bean 4.2.2



Please help me.
 

JotdoKa

New member
Mar 26, 2014
2
0
0
Hi guys!

I have problem with my I-9300 (Galaxy S3) and wireless Xbox 360 controller. I rooted my phone, followed the steps, but I'm still unable to play games with my controller. Do I have to change my ROM in order to make it work?
 

collindv

Senior Member
Jun 28, 2007
405
74
0
Hi guys!

I have problem with my I-9300 (Galaxy S3) and wireless Xbox 360 controller. I rooted my phone, followed the steps, but I'm still unable to play games with my controller. Do I have to change my ROM in order to make it work?
A wireless controller will only work with the Microsoft USB adapter as they use a proprietary wireless format (ie not Bluetooth like the ps3)

Sent from my SCH-I545 using Tapatalk
 

kneedalz

Member
Mar 20, 2010
20
1
0
Chicago
Hey Bro I know we've been talking about the XBOX 360 controller and all but I have finally broke down and went and spent the $29.99+ tax for the MOGA POCKET controller and I am so happy that I have made the decision to buy it B/C it will pretty much work with all the good games there's two apps you need 1.MOGA PIVOT 2. MOGA UNIVERSAL DRIVER the 1st. one is for set up of the controller and the 2nd. is for mapping any button or joystick to suit your needs for pretty much any game you want to and mine works AWESOME with my good games like : DEAD SPACE, NOVA 3,MC3, MC4, ASPHALT 7 and 8, MASS EFFECT, DEAD ON ARRIVAL 2, YOU GET SONIC CD FOR FREE THE FULL GAME TO, ALIEN VS. PREDATOR, BATMAN, SPIDERMAN, PSP EMULATOR, BACK STAB, GRAND THEFT AUTO vice city, ARMA TACTICS THD, BREACH and CLEAR, HE-MAN, just to name a few and also my 1st. Gen NEXUS 7 16 Gig. is and always has been STOCK no rooting or unlocking period and it plays games AWESOME and I HOPE THAT THIS HELPS EVERYONE G.B.Y.

Sent from my Nexus 7

You say the Moga works for Dead Space? How do you get it to work, universal driver? If so could you share the profile?
 
S

Scruffy90

Guest
I have a unique issue with the dongle and haven't been able to solve it. I have it working with an unrooted LG G2. Everything is mappable and the buttons respond with minimal lag when looking through the controller info section of certain apps; when I play the game though, its a different story.

Two things happen during gameplay:
-The buttons seem to stick. For instance, in Super N64, when I press A it seems to hold down the button.
-There are random spikes of lag. For instance, i'd press right and it wouldn't happen on screen for a few seconds or at all.

Is there anyway to fix it?

Would be nice to actually use the 360 dongle since I have a ton of 360 controllers lying around.
 

jefferai

Member
Jan 5, 2007
28
10
0
Just read first topic

Simple way. Root device. Install Root Explorer. Go to /system/usr/keylayout/ folder. Rename Vendor_045e_Product_0291.kl to Vendor_045e_Product_0719.kl
Reboot.
Oh, you meant before following these instructions. I thought you meant you had a problem after.