-
Notifications
You must be signed in to change notification settings - Fork 0
InputEventKey
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.InputEventKey |
| Namespace | Electron2D |
| Kind | class |
| Category | Input |
Represents a keyboard key press, release, echo, or text input scalar value.
public class Electron2D.InputEventKey : Electron2D.InputEventWithModifiersProfile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: InputEventKey
Keyboard key down/up, echo and native text input Unicode scalar baseline.
Platform key down/up events fill Electron2D.InputEventKey.Keycode, Electron2D.InputEventKey.PhysicalKeycode,
Electron2D.InputEventKey.KeyLabel, Electron2D.InputEventKey.Pressed and Electron2D.InputEventKey.Echo.
Platform text input events are represented as one or more key events with
Electron2D.InputEventKey.Unicode set and the keycode fields left as Electron2D.Key.None.
Instances are mutable and are not synchronized; use them from the input dispatch thread that owns the event.
Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.
This class is available since Electron2D 0.1.0 Preview.
| Member | Kind | Summary |
|---|---|---|
Echo |
Property | Gets or sets whether this event is an echo repeat while the key is held. |
KeyLabel |
Property | Gets or sets the localized key label. |
Keycode |
Property | Gets or sets the layout key code. |
Location |
Property | Gets or sets the left/right key location for modifier keys. |
PhysicalKeycode |
Property | Gets or sets the physical key code on a US QWERTY keyboard layout. |
Pressed |
Property | Gets or sets whether the key is pressed. |
Unicode |
Property | Gets or sets the Unicode scalar value produced by platform text input. |
Electron2D.InputEventKey() |
Constructor | Initializes a new instance of the InputEventKey type. |
Kind: Property
public System.Boolean Echo { get; set; }Gets or sets whether this event is an echo repeat while the key is held.
This property follows the validation and lifetime rules of its declaring type.
The current echo value.
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.InputEventKey
Kind: Property
public Electron2D.Key KeyLabel { get; set; }Gets or sets the localized key label.
This property follows the validation and lifetime rules of its declaring type.
The current key label value.
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.InputEventKey
Kind: Property
public Electron2D.Key Keycode { get; set; }Gets or sets the layout key code.
This property follows the validation and lifetime rules of its declaring type.
The current keycode value.
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.InputEventKey
Kind: Property
public Electron2D.KeyLocation Location { get; set; }Gets or sets the left/right key location for modifier keys.
This property follows the validation and lifetime rules of its declaring type.
The current location value.
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.InputEventKey
Kind: Property
public Electron2D.Key PhysicalKeycode { get; set; }Gets or sets the physical key code on a US QWERTY keyboard layout.
This property follows the validation and lifetime rules of its declaring type.
The current physical keycode value.
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.InputEventKey
Kind: Property
public System.Boolean Pressed { get; set; }Gets or sets whether the key is pressed.
This property follows the validation and lifetime rules of its declaring type.
The current pressed value.
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.InputEventKey
Kind: Property
public System.Int32 Unicode { get; set; }Gets or sets the Unicode scalar value produced by platform text input.
This property follows the validation and lifetime rules of its declaring type.
The current unicode value.
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.InputEventKey
Kind: Constructor
public Electron2D.InputEventKey()Initializes a new instance of the InputEventKey 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.InputEventKey
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.