Skip to content

KeyLocation

Eduard Gushchin edited this page Jul 1, 2026 · 5 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.KeyLocation
Namespace Electron2D
Kind enum
Category Input

Overview

Identifies the left or right location of a keyboard key.

Syntax

public enum Electron2D.KeyLocation : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: KeyLocation

Left/right modifier key location baseline.

Remarks

This is used for modifier keys such as Shift, Alt, Control and Meta where the platform can report a specific side.

This enum is immutable and is safe to use from any thread.

Since

This enum is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
Left Enum value The key is on the left side.
Right Enum value The key is on the right side.
Unspecified Enum value The key location is not specified.

Member Details

Left

Kind: Enum value

public const Electron2D.KeyLocation Left

Summary

The key is on the left side.

Remarks

Use this value with APIs that accept KeyLocation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.KeyLocation

Right

Kind: Enum value

public const Electron2D.KeyLocation Right

Summary

The key is on the right side.

Remarks

Use this value with APIs that accept KeyLocation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.KeyLocation

Unspecified

Kind: Enum value

public const Electron2D.KeyLocation Unspecified

Summary

The key location is not specified.

Remarks

Use this value with APIs that accept KeyLocation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.KeyLocation

Clone this wiki locally