Default Gamepad support problem

So, i have a nexus 7 rooted and i bought an otg cable. I connect my logitech f 310 gamepad and i could navigate through the menu but when i launch modern combat 4 the camera was spinning.Same for gta san andreas but i tried with dead trigger 2 and everything worked fine.I tried the tutorial with xbox wirless controller but nothing changed.