I don't know if is what your are searching (probaly not) but you can detect the device of the player by using, that can be useful: $player->getDeviceOS()
get device os is can only check minecraft type (e.g. windows) so that can't check the player's control type