PDA

View Full Version : Xbox 360 Controller - Kodi 15 - A, B, X and Y buttons not working



ManikM
20-08-2015, 01:52 PM
Hi Guys!

Ive recently got a Fire TV - and got my Xbox 360 controller working with it fine.

When in KODI the A, B, X and Y buttons don't work.

Is there something I need to configure...how do you force KODI to use a custom keymap file?

Thanks!!!

mrdude
20-08-2015, 03:13 PM
You need these files:

Vendor_045e_Product_0291.kl - wireless mode
Vendor_045e_Product_0719.kl - wired mode

These are the scanned codes for all the buttons to work:



# XBox 360 wireless Controller
#
key 304 BUTTON_A
key 305 BUTTON_B
key 307 BUTTON_X
key 308 BUTTON_Y
key 310 BUTTON_L1
key 311 BUTTON_R1
key 314 BUTTON_SELECT
key 315 BUTTON_START
key 316 BUTTON_MODE
key 317 BUTTON_THUMBL
key 318 BUTTON_THUMBR

# Left and right stick.
axis 0x00 X flat 4096
axis 0x01 Y flat 4096
axis 0x03 Z flat 4096
axis 0x04 RZ flat 4096

# Triggers.
axis 0x02 LTRIGGER
axis 0x05 RTRIGGER

# Hat.
axis 0x10 HAT_X
axis 0x11 HAT_Y

# Dpad
key 704 DPAD_LEFT
key 705 DPAD_RIGHT
key 706 DPAD_UP
key 707 DPAD_DOWN
key 316 HOME (guide button returns to home)


I scanned all these ages ago - they work on my minix x7 + x8 + tablet - so they should work fine on your device. You will need root access to put those files on your device.

You can esily map any remote or controller using scan code and busybox -

In busybox open a terminal command and type this:



cat /proc/bus/input/devices


It will give you the vendor id and product id:

ie:



---xbox wireless controller
vendor - 045e
product - 0291
version - 0107


That basically lets you know what file you need to make - and scan code app gives you the codes you need to map buttons.


You will already have a Generic.kl file on your box - you could just add the codes above to get your controller working with all the buttons.

Or specific to KODI - create a file called, userdata/keymaps/remote.xml

Then add your codes as above to this - do a search for this on KODI wiki for more information.

ManikM
20-08-2015, 05:32 PM
You need these files:

Vendor_045e_Product_0291.kl - wireless mode
Vendor_045e_Product_0719.kl - wired mode

These are the scanned codes for all the buttons to work:



# XBox 360 wireless Controller
#
key 304 BUTTON_A
key 305 BUTTON_B
key 307 BUTTON_X
key 308 BUTTON_Y
key 310 BUTTON_L1
key 311 BUTTON_R1
key 314 BUTTON_SELECT
key 315 BUTTON_START
key 316 BUTTON_MODE
key 317 BUTTON_THUMBL
key 318 BUTTON_THUMBR

# Left and right stick.
axis 0x00 X flat 4096
axis 0x01 Y flat 4096
axis 0x03 Z flat 4096
axis 0x04 RZ flat 4096

# Triggers.
axis 0x02 LTRIGGER
axis 0x05 RTRIGGER

# Hat.
axis 0x10 HAT_X
axis 0x11 HAT_Y

# Dpad
key 704 DPAD_LEFT
key 705 DPAD_RIGHT
key 706 DPAD_UP
key 707 DPAD_DOWN
key 316 HOME (guide button returns to home)


I scanned all these ages ago - they work on my minix x7 + x8 + tablet - so they should work fine on your device. You will need root access to put those files on your device.

You can esily map any remote or controller using scan code and busybox -

In busybox open a terminal command and type this:



cat /proc/bus/input/devices


It will give you the vendor id and product id:

ie:



---xbox wireless controller
vendor - 045e
product - 0291
version - 0107


That basically lets you know what file you need to make - and scan code app gives you the codes you need to map buttons.


You will already have a Generic.kl file on your box - you could just add the codes above to get your controller working with all the buttons.

Or specific to KODI - create a file called, userdata/keymaps/remote.xml

Then add your codes as above to this - do a search for this on KODI wiki for more information.

OMG thanks so much - so to summarise, I don't need to root, to get this working.
Im surprised its so in depth to get this working - especially as it works within the FIRE OS by default.

mrdude
20-08-2015, 06:45 PM
If all the buttons work on the fire already you can skip the above as these kl files are already present with the correctly mapped buttons. You will need to edit KODI's files - just look in the KODI wiki for remote mapping - the scanned codes from above are the values you will need.

I haven't looked at KODI for ages - but I'm surprised these codes are not already added? Are you sure they work on your Kindle Fire on other apps already? If not and you need to add those KL files - you will need root to put them on to your device.

ManikM
04-09-2015, 01:00 PM
If all the buttons work on the fire already you can skip the above as these kl files are already present with the correctly mapped buttons. You will need to edit KODI's files - just look in the KODI wiki for remote mapping - the scanned codes from above are the values you will need.

I haven't looked at KODI for ages - but I'm surprised these codes are not already added? Are you sure they work on your Kindle Fire on other apps already? If not and you need to add those KL files - you will need root to put them on to your device.

thanks for this mate