PlayerControllerHelperMapHelperGetFirstMapInCategoryT Method (Int32, Int32) |
Gets the first controller map for the specified controller in the matching category assigned to this Player.
Namespace:
Rewired
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public T GetFirstMapInCategory<T>(
int controllerId,
int categoryId
)
where T : ControllerMap
Parameters
- controllerId
- Type: SystemInt32
Controller id - Get this from the Controller.id property. For Keyboard and Mouse, just use 0. - categoryId
- Type: SystemInt32
Category id
Type Parameters
- T
- Controller map type
Return Value
Type:
TController Map
See Also