[Nexus 7 General] Toxicone11:
Same problem diferrent gamepad

Okay, i have the same problem but with logitech ps2 wireless gamepad and i use usb to ps2 adapter, and i can play emulators like n64 fine, but with dead trigger and gta i have the same problem as xbox gamepad, so i was wondering if i could do the same as you did to fix this, i need to know how you got this:

<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

How do i find out my gamepads idvendor and id product so i could try copying xbox layout and renaming it to may gamepads id so it doesnt use generic.kl

sorry for bad english i hope you understand, thank you

EDIT: Okay, i was up all night and i finally solved my issue, first of, it seems that you dont have to restart your device after you make changes of any sort in your keylayout folder, so after all that chmod 644..... Just unplug your game pad and youre good to go, second, if you use file explorer and you have this same problem like me and you have some other gamepad that isnt ps3 and xbox, you can change your layout, you need to go to terminal emulator type 'su' and connect your gamepad and type 'dmesg' then scroll up and find 'idVendor=xxxx, idProduct=xxxx' (x represents numbers and letters of your devices id) and remember or copy that line, whatch out for uppercase letters because it wont work, now open your file explorer and enable root privileges and go to system/usr/keylayout then choose existing layout example ' idVendor=045e, idProduct=0719' and copy it somewhere and rename it to your devices id, then copy it back to keylayout folder, now go to terminal emulator and type:

Su

Cd /system/usr/keylayout

Mount -o remount,rw /system

Chmod 644 idVendor=xxxx, idProduct=xxxx.kl <------ that new file you copied to keylayout folder, now you can unplug your device and plug it back in, and download app Joystictests from google store its free, in there you can test your analog sticks, now if there is still a problem you can go to your file explorer and go to system/usr/keylayout again and click your devices file and open it with text editor, here you can change yor mappings for example in dead trigger when you moove your thumbstick left player looks up, so the axis are switched, you need to find

axis 0x02 RX

axis 0x05 RY

you just switch rx with ry

Dont forget to go to terminal emulator and type

Su

Cd /system/usr/keylayout

Mount -o remount,rw /system

Chmod 644 idVendor=xxxx, idProduct=xxxx.kl

You must do this after every modification to keylayout file ti give your phone or tab permisson to use it, now just unplug and plug back in your gamepad and try dead trigger and see how it works, its all trial and error, my wireless gamepad was expensive (to me) so i was up all night figuring this out and i finaly made my mappings to work with games, i had to edit the crap out of it, it seems like my buttons on my gamepad are mixed or something...

Hope this helps and doesnt confuse you, and be carefull when working with root privileges