ReInputMappingHelperGetJoystickMapInstance Method (ControllerIdentifier, String, String) |
Gets a copy of a joystick map from the default controller maps.
This overload can be used when no Joystick is actually connected and available to be used to look up the correct Controller Maps to load.
The Controller Map returned by this method is not guarateed to be consistent with the Controller Map that would be loaded
were the actual device to be connected. This is due to the fact that different Controller Maps may be loaded depending on the
actual device connected, properties returned by this device, the current input source(s) in use, and more factors.
This can be used to view the default Joystick Map setup in the Rewired Input Manager.
NOTE: Element indices in ActionElementMaps may not match to to a Controller Map created with the actual controller connected.
Do not rely on ActionElementMap.elementIndex being accurate in Controller Maps returned by this method.
This method can only be used to load Controller Maps for recognized Controllers. Unrecognized Controllers are not supported.
Namespace:
Rewired
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public JoystickMap GetJoystickMapInstance(
ControllerIdentifier controllerIdentifier,
string mapCategoryName,
string layoutName
)
Parameters
- controllerIdentifier
- Type: RewiredControllerIdentifier
Controller for which to retrieve the map. - mapCategoryName
- Type: SystemString
Map Category Name - layoutName
- Type: SystemString
Layout Name
Return Value
Type:
JoystickMapJoystick Map
See Also