Problems with using a USB joystick

ThomasKK

Member
Jul 4, 2016
14
0
0
Visit site
Hello, i have a problem.

I'm currently using Galaxy Note5, rooted, Note7/S7Edge ported rom and custom kernel. I've bought a cheap chinese USB gamepad with idea to use it while i wait for my Xbox360 receiver. After a long time of testing and trying to make it work i didn't have any more ideas what could i do and came to ask here.

In my opinion, the problem is that my joystick has wrongly mapped buttons. It is Ezperanza EG102, PC recognizes it as "Generic USB Joystick" and it works like Playstation's Dualshock controller, so i have to use x360ce for using it with PC. I've checked key input files with root explorer and came up to generic.kl file. Before that i used some 3rd party apps to remap the buttons, i created a specific name_XXXX_name_XXXX.kl file but it doesn't seem to work. I want my joystick to function like a regular Xbox360 controller, but the only buttons games recognize are the D-pad and the left stick (telltale games). But for example when playing dead trigger, the ABXY buttons and both sticks start to work, but i still can't find out why the triggers/bumbers don't!

I found out that standart xbox360 controller's key file looks like this:
key 304 BUTTON_A
key 305 BUTTON_B
key 306 BUTTON_C
key 307 BUTTON_X
key 308 BUTTON_Y
key 309 BUTTON_Z
key 310 BUTTON_L1
key 311 BUTTON_R1
key 312 BUTTON_L2
key 313 BUTTON_R2
key 314 BUTTON_SELECT
key 315 BUTTON_START
key 316 BUTTON_MODE
key 317 BUTTON_THUMBL
key 318 BUTTON_THUMBR

The buttons start from the key #304 to #318. I found out that my joystick's keys have numbers from #188 to #199. (I think that is the problem)

I also tried editing the generic.kl file for these specific buttons and changed the <action> from F18, F19.. etc to BUTTON_Y, BUTTON_X.. etc But after restarting my phone all the buttons stopped working. I couldn't use power/volume up/volume down/home/back/function keys, absolutely none. After some time i managed to restore my changes and everything works fine now, except the gamepad. Are there any other ways i could make my USB joystick work normally just like xbox360 controller with my Note5?
 

belodion

Co-Ambassador Team Lead
Moderator
Jun 10, 2014
39,460
338
83
Visit site
Welcome. :)

I'll move this to the Gamers Lounge forum, where hopefully you will get a response.
 

Trending Posts

Forum statistics

Threads
945,647
Messages
6,926,450
Members
3,159,927
Latest member
Paknbast