InputMapperContext Class |
Namespace: Rewired
public class Context
The InputMapperContext type exposes the following members.
Name | Description | |
---|---|---|
InputMapperContext |
Creates a new Context.
|
Name | Description | |
---|---|---|
actionElementMapToReplace |
The ActionElementMap to be replaced. This ActionElementMap must exist in the Controller Map being passed in or you will get an error.
Leave null if you are not replacing an existing mapping.
| |
actionId |
The id of the Action to be mapped.
This is a required field.
This can also be set using the actionName field instead.
| |
actionName |
The name of the Action to be mapped.
This is just a convenience property to allow you to set the actionId property
by using the string name instead of the id. Setting this property
will set the actionId property with the corresponding id.
| |
actionRange |
The range of the Action's value to map input to. For example, for an axis-type Action, should
user input be mapped to the full range of the Action or just one side of the Action (+/-)?
NOTE: This is not the same as or interchangeable with axisRange.
Do not pass the value from axisRange into this function or you will get unexpected results.
| |
controllerMap |
The Controller Map that will be populated with the new mapping.
This is a required field.
|
Name | Description | |
---|---|---|
Clone |
Creates a shallow copy of this object.
| |
Copy |
Copies data from one Context into another Context.
|