Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    IInputDevice Interface

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

    public interface IInputDevice
    Name Description
    Properties
    Id

    The unique identifier of this device

    Name

    The name of the device

    Priority

    The device priority. Larger means higher priority when selecting the first device of some type

    Source

    The input source the device belongs to.

    Methods
    Update(List<InputEvent>)

    Updates the input device, filling the list with input events that were generated by this device this frame

    | Improve this Doc View Source

    Properties


    Id

    The unique identifier of this device

    Guid Id { get; }
    Property Value
    Type Description
    System.Guid

    Name

    The name of the device

    string Name { get; }
    Property Value
    Type Description
    System.String

    Priority

    The device priority. Larger means higher priority when selecting the first device of some type

    int Priority { get; set; }
    Property Value
    Type Description
    System.Int32

    Source

    The input source the device belongs to.

    IInputSource Source { get; }
    Property Value
    Type Description
    IInputSource
    | Improve this Doc View Source

    Methods


    Update(List<InputEvent>)

    Updates the input device, filling the list with input events that were generated by this device this frame

    void Update(List<InputEvent> inputEvents)
    Parameters
    Type Name Description
    System.Collections.Generic.List<InputEvent> inputEvents

    A list that gets filled with input events that were generated since the last frame

    Remarks

    Input devices are always updated after their respective input source


    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