-
Notifications
You must be signed in to change notification settings - Fork 0
InputEventJoypadMotion
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.InputEventJoypadMotion |
| Namespace | Electron2D |
| Kind | class |
| Category | Input |
Represents a gamepad axis motion event.
public class Electron2D.InputEventJoypadMotion : Electron2D.InputEventAxis motion is delivered through Electron2D.Node._Input(Electron2D.InputEvent) and
updates both Electron2D.Input.GetJoyAxis(System.Int32,Electron2D.JoyAxis) and
Electron2D.InputMap action state.
The device id is stored in Electron2D.InputEvent.Device. Unknown devices
are registered as connected placeholder devices when an axis event is
processed.
Instances are mutable and are not synchronized; use them from the input dispatch thread that owns the event.
This class is available since Electron2D 0.1.0 Preview.
Electron2D.Input.GetJoyAxis(System.Int32,Electron2D.JoyAxis)Electron2D.InputMapElectron2D.JoyAxis
| Member | Kind | Summary |
|---|---|---|
Axis |
Property | Gets or sets the gamepad axis represented by this event. |
AxisValue |
Property | Gets or sets the normalized axis value. |
Electron2D.InputEventJoypadMotion() |
Constructor | Initializes a new instance of the InputEventJoypadMotion type. |
Kind: Property
public Electron2D.JoyAxis Axis { get; set; }Gets or sets the gamepad axis represented by this event.
Invalid axes do not match action bindings and are ignored by
Electron2D.Input.GetJoyAxis(System.Int32,Electron2D.JoyAxis).
A Electron2D.JoyAxis value, or Electron2D.JoyAxis.Invalid for an
unmapped axis.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventJoypadMotion
Kind: Property
public System.Single AxisValue { get; set; }Gets or sets the normalized axis value.
Action bindings compare this value with the sign stored in the binding event. The absolute value becomes action strength when it is outside the action deadzone.
A finite value clamped to the range -1.0 through 1.0.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventJoypadMotion
Kind: Constructor
public Electron2D.InputEventJoypadMotion()Initializes a new instance of the InputEventJoypadMotion type.
The new instance follows the lifetime and validation rules of its declaring type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventJoypadMotion
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.