Click or drag to resize

InputMapperContext Class

Provides information about an input mapping. This is used to define what is being mapped and how user input should be handled.
Inheritance Hierarchy
SystemObject
  RewiredInputMapperContext

Namespace:  Rewired
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Context

The InputMapperContext type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyactionElementMapToReplace
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.
Public propertyactionId
The id of the Action to be mapped. This is a required field. This can also be set using the actionName field instead.
Public propertyactionName
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.
Public propertyactionRange
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.
Public propertycontrollerMap
The Controller Map that will be populated with the new mapping. This is a required field.
Top
Methods
  NameDescription
Public methodClone
Creates a shallow copy of this object.
Public methodStatic memberCopy
Copies data from one Context into another Context.
Top
See Also