pubg has a controller lock... to put all players on the same output level... also bluetooth mouse and keyboard does not work. the only thing that works is a cover handler with trigger. for the mobile phone.
You should be able to set this ingame, if not, there are various key-mapper apps with which you can set everything. The catch is that most of these apps don't allow you to press multiple keys at the same time if you want to run and shoot, for example... which is a bit of a shame in some games.
Compatible with Android 4.0.2 or higher (Smartphone/Tablet/SmartTV). You should therefore see what type of Android version you have on your Xperia XZ2 Compact to see if this controller is compatible.