Read the whole discussion here on why you probably do not need to know what device a player is playing on:

Device Type Detection Engine Features I’ve made a similar request in the past, but I’m coming back with a more refined request. Sometimes it can be very useful to tell what type of device a user is on (such as console, PC, mobile…). However, there is currently no way to explicitly check and see what device the user is on. And so game devs are forced to do hacky tricks to figure out what device the user might be on. I emphasize “might” because it is not a guarantee and there are holes in the logic. My proposal: Player.DeviceType …

Knowing the device is only really useful for analytics. You don’t actually want to base anything else off of device type, just use input mode.