Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    TouchController Class

    Namespace: Stride.VirtualReality
    Assembly: Stride.VirtualReality.dll
    System.Object → TouchController
    Derived from TouchController:

    public abstract class TouchController : IDisposable
    Name Description
    Properties
    AngularVelocity
    Grip
    IndexPointing
    IndexResting
    LinearVelocity
    Position
    Rotation
    State
    ThumbAxis
    ThumbResting
    ThumbstickAxis
    ThumbUp
    Trigger
    Methods
    Dispose()
    IsPressed(TouchControllerButton)

    Returns true if button switched is in the pressed state

    IsPressedDown(TouchControllerButton)

    Returns true if in this frame the button switched to pressed state

    IsPressReleased(TouchControllerButton)

    Returns true if in this frame the button was released

    IsTouched(TouchControllerButton)

    Returns true if button switched is in the pressed state

    IsTouchedDown(TouchControllerButton)

    Returns true if in this frame the button switched to pressed state

    IsTouchReleased(TouchControllerButton)

    Returns true if in this frame the button was released

    Update(GameTime)
    | Improve this Doc View Source

    Properties


    AngularVelocity

    public abstract Vector3 AngularVelocity { get; }
    Property Value
    Type Description
    Vector3

    Grip

    public abstract float Grip { get; }
    Property Value
    Type Description
    System.Single

    IndexPointing

    public abstract bool IndexPointing { get; }
    Property Value
    Type Description
    System.Boolean

    IndexResting

    public abstract bool IndexResting { get; }
    Property Value
    Type Description
    System.Boolean

    LinearVelocity

    public abstract Vector3 LinearVelocity { get; }
    Property Value
    Type Description
    Vector3

    Position

    public abstract Vector3 Position { get; }
    Property Value
    Type Description
    Vector3

    Rotation

    public abstract Quaternion Rotation { get; }
    Property Value
    Type Description
    Quaternion

    State

    public abstract DeviceState State { get; }
    Property Value
    Type Description
    DeviceState

    ThumbAxis

    public abstract Vector2 ThumbAxis { get; }
    Property Value
    Type Description
    Vector2

    ThumbResting

    public abstract bool ThumbResting { get; }
    Property Value
    Type Description
    System.Boolean

    ThumbstickAxis

    public abstract Vector2 ThumbstickAxis { get; }
    Property Value
    Type Description
    Vector2

    ThumbUp

    public abstract bool ThumbUp { get; }
    Property Value
    Type Description
    System.Boolean

    Trigger

    public abstract float Trigger { get; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Methods


    Dispose()

    public virtual void Dispose()

    IsPressed(TouchControllerButton)

    Returns true if button switched is in the pressed state

    public abstract bool IsPressed(TouchControllerButton button)
    Parameters
    Type Name Description
    TouchControllerButton button
    Returns
    Type Description
    System.Boolean

    IsPressedDown(TouchControllerButton)

    Returns true if in this frame the button switched to pressed state

    public abstract bool IsPressedDown(TouchControllerButton button)
    Parameters
    Type Name Description
    TouchControllerButton button
    Returns
    Type Description
    System.Boolean

    IsPressReleased(TouchControllerButton)

    Returns true if in this frame the button was released

    public abstract bool IsPressReleased(TouchControllerButton button)
    Parameters
    Type Name Description
    TouchControllerButton button
    Returns
    Type Description
    System.Boolean

    IsTouched(TouchControllerButton)

    Returns true if button switched is in the pressed state

    public abstract bool IsTouched(TouchControllerButton button)
    Parameters
    Type Name Description
    TouchControllerButton button
    Returns
    Type Description
    System.Boolean

    IsTouchedDown(TouchControllerButton)

    Returns true if in this frame the button switched to pressed state

    public abstract bool IsTouchedDown(TouchControllerButton button)
    Parameters
    Type Name Description
    TouchControllerButton button
    Returns
    Type Description
    System.Boolean

    IsTouchReleased(TouchControllerButton)

    Returns true if in this frame the button was released

    public abstract bool IsTouchReleased(TouchControllerButton button)
    Parameters
    Type Name Description
    TouchControllerButton button
    Returns
    Type Description
    System.Boolean

    Update(GameTime)

    public virtual void Update(GameTime time)
    Parameters
    Type Name Description
    GameTime time

    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