Click or drag to resize

PlayerController.MouseAxis Class

A Mouse Axis that uses Player Actions as the value source. Source value is automatically scaled to screen resolution.
Inheritance Hierarchy

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

The PlayerController.MouseAxis type exposes the following members.

Properties
  NameDescription
Public propertyabsoluteToRelativeSensitivity
The absolute to relative sensitivity multiplier. This is only applied when the axis coordinate mode is set to Relative and the axis receives Absolute coordinate mode input (joystick axes, keyboard keys, etc.).
(Inherited from PlayerController.Axis.)
Public propertyactionId
The Action id of the Action which will be used as the input source for the Element.
(Inherited from PlayerController.ElementWithSource.)
Public propertyactionName
The Action name of the Action which will be used as the input source for the Element.
(Inherited from PlayerController.ElementWithSource.)
Public propertycoordinateMode
The output coordinate mode of the axis. An Absolute axis will only return value for input received from Absolute sources. A Relative axis will return value for input received from both Relative and Absolute sources. When converting from an Absolute input source to a Relative output, absoluteToRelativeSensitivity will be multiplied by the Absolute value to yield a simulated Relative value.
(Inherited from PlayerController.Axis.)
Public propertyenabled
Is this element enabled? Disabled elements return no value.
(Inherited from PlayerController.Element.)
Public propertyname
The name of the element.
(Inherited from PlayerController.Element.)
Public propertyvalue
The current value.
(Overrides PlayerController.Axis.value.)
Public propertyvalueRaw
The current raw value. This is the same as getting the raw axis value from Player.GetAxisRaw.
(Inherited from PlayerController.Axis.)
Top
See Also