Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Getting name of most recently used device

A topic by Two-Headed Deer created Aug 26, 2023 Views: 96
Viewing posts 1 to 1

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.