|
Input System
v0.1
|
Functions to working with control path specs (like "/gamepad/*stick"). More...
Static Public Member Functions | |
| static string | TryGetDeviceTemplate (string path) |
Functions to working with control path specs (like "/gamepad/*stick").
The thinking here is somewhat similar to System.IO.Path, i.e. have a range of static methods that perform various operations on paths.
Has both methods that work just on paths themselves (like TryGetControlTemplate) and methods that work on paths in combination with controls (like TryFindControls).
|
static |
This function will only use information available in the path itself or in templates referenced by the path. It will not look at actual devices in the system. This is to make the behavior predictable and not dependent on whether you currently have the right device connected or not.
Note that this function allocates and causes GC.
| path | A control path (like "/<gamepad>/leftStick") |
| ArgumentNullException | path is null |