Firstborn/Library/PackageCache/com.unity.inputsystem@1.4.4/Samples~/CustomDeviceUsages
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00
..
.sample.json Library -Artifacts 2023-03-28 12:24:16 -05:00
.sample.json.meta Library -Artifacts 2023-03-28 12:24:16 -05:00
CustomDeviceUsages.cs Library -Artifacts 2023-03-28 12:24:16 -05:00
CustomDeviceUsages.cs.meta Library -Artifacts 2023-03-28 12:24:16 -05:00
README.md Library -Artifacts 2023-03-28 12:24:16 -05:00
README.md.meta Library -Artifacts 2023-03-28 12:24:16 -05:00
TwoPlayerControls.inputactions Library -Artifacts 2023-03-28 12:24:16 -05:00
TwoPlayerControls.inputactions.meta Library -Artifacts 2023-03-28 12:24:16 -05: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).