Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    KeyEvent Class

    Namespace: Stride.Input
    Assembly: Stride.Input.dll

    Event for a keyboard button changing state

    System.Object → InputEvent → ButtonEvent → KeyEvent
    Derived from KeyEvent:

    public class KeyEvent : ButtonEvent, IInputEventArgs
    Name Description
    Fields
    Key

    The key that is being pressed or released.

    RepeatCount

    The repeat count for this key. If it is 0 this is the initial press of the key

    Properties
    Keyboard

    The keyboard that sent this event

    Methods
    ToString()
    | Improve this Doc View Source

    Fields


    Key

    The key that is being pressed or released.

    public Keys Key
    Field Value
    Type Description
    Keys

    RepeatCount

    The repeat count for this key. If it is 0 this is the initial press of the key

    public int RepeatCount
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Properties


    Keyboard

    The keyboard that sent this event

    public IKeyboardDevice Keyboard { get; }
    Property Value
    Type Description
    IKeyboardDevice
    | Improve this Doc View Source

    Methods


    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Inherited Members

    ButtonEvent.IsDown
    InputEvent.Device

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation