Search Results for

    Show / Hide Table of Contents

    Class Keyboard

    Represents a single hardware keyboard device. Used by the Input to report raw keyboard input events.

    Inheritance
    System.Object
    Object
    InputDevice
    Keyboard
    Inherited Members
    InputDevice.Name
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public class Keyboard : InputDevice

    Constructors

    Keyboard()

    Initializes a new instance of the Keyboard.

    Declaration
    public Keyboard()

    Properties

    InputText

    Gets the text entered during the current frame (Unicode format).

    Declaration
    [Unmanaged]
    public string InputText { get; }
    Property Value
    System.String

    IsAnyKeyDown

    Checks if any keyboard key is currently pressed.

    Declaration
    [Unmanaged]
    public bool IsAnyKeyDown { get; }
    Property Value
    System.Boolean

    Methods

    GetKey(KeyboardKeys)

    Gets keyboard key state.

    Declaration
    [Unmanaged]
    public bool GetKey(KeyboardKeys key)
    Parameters
    KeyboardKeys key

    Key ID to check.

    Returns
    System.Boolean

    True if user holds down the key identified by id, otherwise false.

    GetKeyDown(KeyboardKeys)

    Gets keyboard key down state.

    Declaration
    [Unmanaged]
    public bool GetKeyDown(KeyboardKeys key)
    Parameters
    KeyboardKeys key

    Key ID to check

    Returns
    System.Boolean

    True if user starts pressing down the key, otherwise false.

    GetKeyUp(KeyboardKeys)

    Gets keyboard key up state.

    Declaration
    [Unmanaged]
    public bool GetKeyUp(KeyboardKeys key)
    Parameters
    KeyboardKeys key

    Key ID to check

    Returns
    System.Boolean

    True if user releases the key, otherwise false.

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat