minesweeper_game/Library/PackageCache/com.unity.inputsystem@e2c83221d2dc/Samples~/CustomDeviceUsages
2025-03-15 14:30:26 -04:00
..
.sample.json base 2025-03-15 14:30:26 -04:00
CustomDeviceUsages.cs base 2025-03-15 14:30:26 -04:00
CustomDeviceUsages.cs.meta base 2025-03-15 14:30:26 -04:00
README.md base 2025-03-15 14:30:26 -04:00
README.md.meta base 2025-03-15 14:30:26 -04:00
TwoPlayerControls.inputactions base 2025-03-15 14:30:26 -04:00
TwoPlayerControls.inputactions.meta base 2025-03-15 14:30:26 -04:00

This sample shows how to tag devices with custom "usages" and how to bind actions specifically to devices with only those usages.

This is useful if you have the same type of device that appears in multiple different roles that you want to distinguish when binding to the device. For example, when a device may appear in both the left and the right hand or may appear held in different orientations (say, horizontal vs vertical).