|
Download a terminal app
conect gamepad in game mode
in terminal do
- cat /proc/bus/input/devices
Copy the Code take note of Vendor= Product=
make a new file called Vendor_????_Product_????.kl <~~~~~ replace the ???? with your values from terminal for Vendor= Product=
open the file with a text editor and paste this inside
- #
- # GEN GAME S3
- #
- 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 HOME
- key 317 BUTTON_THUMBL
- key 318 BUTTON_THUMBR
- # Left and right stick.
- axis 0x00 X
- axis 0x01 Y
- axis 0x03 Z
- axis 0x04 RZ
- # Triggers.
- axis 0x02 LTRIGGER
- axis 0x05 RTRIGGER
- # Hat.
- axis 0x10 HAT_X
- axis 0x11 HAT_Y
Copy the Code
download and install this (message me on freektab for link)
press all buttons one by one taking note of each scancode value for each button
now change the key codes in the file with the scancodes you took to mach the buttons
save file, add to system/usr/keylayout
set permissions
unpair gamepad, reboot, pair
|
|