Phone doesn't recognize xinput controller 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
XInput is a part of the DirectX 9 (and up), originally made for Xbox 360. It is rarely supported by Android devices.

DInput is an acronym for DirectInput, part of DirectX 8.1 and lower, originally made for Windows, and embedded. Since it's part of Windows' (or PC's) standard control API, most Android devices supports it natively.

That's why your controller works in DInput mode but not XInput.