-
Notifications
You must be signed in to change notification settings - Fork 0
InputEventAction
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.InputEventAction |
| Namespace | Electron2D |
| Kind | class |
| Category | Input |
Represents a direct action input event.
public class Electron2D.InputEventAction : Electron2D.InputEventProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: InputEventAction
Direct action input event with action name, pressed state and strength for tests, tooling and automation.
Direct action events are useful for tests, tools and future automation layers that need to submit action-level input without synthesizing a keyboard or mouse event.
The event is resolved through Electron2D.InputMap by comparing
Electron2D.InputEventAction.Action to the requested action name and applying the action's
configured deadzone to Electron2D.InputEventAction.Strength.
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.InputElectron2D.InputMap
| Member | Kind | Summary |
|---|---|---|
Action |
Property | Gets or sets the action name carried by this event. |
Pressed |
Property | Gets or sets whether this event presses the action. |
Strength |
Property | Gets or sets the action strength. |
Electron2D.InputEventAction() |
Constructor | Initializes a new instance of the InputEventAction type. |
Kind: Property
public System.String Action { get; set; }Gets or sets the action name carried by this event.
Assigning null stores an empty action name. Empty action names do
not match registered actions.
The current action value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventAction
Kind: Property
public System.Boolean Pressed { get; set; }Gets or sets whether this event presses the action.
When this property is false, the action strength is treated as
zero regardless of Electron2D.InputEventAction.Strength.
The current pressed value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventAction
Kind: Property
public System.Single Strength { get; set; }Gets or sets the action strength.
Values are clamped to the range 0.0 through 1.0.
Electron2D.InputMap.EventIsAction(Electron2D.InputEvent,System.String,System.Boolean) and
Electron2D.Input.GetActionStrength(System.String,System.Boolean) apply the action
deadzone before treating the action as pressed.
The current strength value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventAction
Kind: Constructor
public Electron2D.InputEventAction()Initializes a new instance of the InputEventAction 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.InputEventAction
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.