Default [Q] Gamepad buttons issue (kernel bug?)

Hello, I'm trying to use my joystick Ipega, but I can't get it to work. the keyboard mode and mouse mode works with no problem. but the joystick mode has some problems with the buttons, they're all messed up, the analog is working as a mouse and some buttons don't even work. I tested it in my friend's android, and it was working with no problem.

There's any way I can fix this?

PD: My android is a rebranded alcatel onetouch 6010x "own s4010"