How do I detect which device the player has most recently used?
For context, I am making a singleplayer game, and I am trying to display a button prompt. I would like to display only the buttons that are relevant to the most recently used input device. I think I can filter the inputs using DeviceInput.deviceName, but first I need the name of the input device most recently used, and I'm not sure how to get that.