So i bought this controller that can switch between xinput and dinput and it came with a usb otg cable so i thought "Hey why don't i try to connect it to my phone" so i did. At first i was a bit disappointed cause it didn't work, but after a while i tried switching to dinput and it worked. My PC recognizes it as a xinput controller and the games work perfectly, so the controller isn't the problem.
Additional details:
Huawei P9 lite
Android 7.0
Pls halp thx