-
Notifications
You must be signed in to change notification settings - Fork 0
InputEventJoypadButton
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.InputEventJoypadButton |
| Namespace | Electron2D |
| Kind | class |
| Category | Input |
Represents a gamepad button press or release.
public class Electron2D.InputEventJoypadButton : Electron2D.InputEventProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: InputEventJoypadButton
Gamepad button press/release event with button index, pressed state, pressure and action binding support.
The event is delivered through Electron2D.Node._Input(Electron2D.InputEvent) and is
also consumed by Electron2D.Input to update button state and by
Electron2D.InputMap to update action bindings.
The device id is stored in Electron2D.InputEvent.Device. Unknown devices
are registered as connected placeholder devices when a button 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.IsJoyButtonPressed(System.Int32,Electron2D.JoyButton)Electron2D.InputMapElectron2D.JoyButton
| Member | Kind | Summary |
|---|---|---|
ButtonIndex |
Property | Gets or sets the gamepad button represented by this event. |
Pressed |
Property | Gets or sets whether the button is pressed. |
Pressure |
Property | Gets or sets the analog pressure for this button event. |
Electron2D.InputEventJoypadButton() |
Constructor | Initializes a new instance of the InputEventJoypadButton type. |
Kind: Property
public Electron2D.JoyButton ButtonIndex { get; set; }Gets or sets the gamepad button represented by this event.
Invalid button values do not match Electron2D.InputMap action
bindings and are ignored by Electron2D.Input.IsJoyButtonPressed(System.Int32,Electron2D.JoyButton).
A Electron2D.JoyButton value, or Electron2D.JoyButton.Invalid for
an unmapped button.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventJoypadButton
Kind: Property
public System.Boolean Pressed { get; set; }Gets or sets whether the button is pressed.
Pressed events update Electron2D.Input.IsJoyButtonPressed(System.Int32,Electron2D.JoyButton)
and action state. Released events clear the corresponding button state.
The current pressed value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventJoypadButton
Kind: Property
public System.Single Pressure { get; set; }Gets or sets the analog pressure for this button event.
Digital platform button events set this to 1.0 while pressed and
0.0 while released. Action bindings use this value when it is
greater than zero.
A value clamped to the range 0.0 through 1.0.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventJoypadButton
Kind: Constructor
public Electron2D.InputEventJoypadButton()Initializes a new instance of the InputEventJoypadButton 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.InputEventJoypadButton
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.