Class InputData | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class InputData

    Inheritance
    System.Object
    InputData
    Namespace: Unity.Tiny.Input
    Syntax
    public class InputData : IDisposable

    Fields

    hasMouse

    Declaration
    public bool hasMouse
    Field Value
    Type Description
    System.Boolean

    hasTouch

    Declaration
    public bool hasTouch
    Field Value
    Type Description
    System.Boolean

    keysJustDown

    Declaration
    public NativeList<KeyCode> keysJustDown
    Field Value
    Type Description
    NativeList<KeyCode>

    keysJustUp

    Declaration
    public NativeList<KeyCode> keysJustUp
    Field Value
    Type Description
    NativeList<KeyCode>

    keysPressed

    Declaration
    public NativeList<KeyCode> keysPressed
    Field Value
    Type Description
    NativeList<KeyCode>

    mouseJustDown

    Declaration
    public int mouseJustDown
    Field Value
    Type Description
    System.Int32

    mouseJustUp

    Declaration
    public int mouseJustUp
    Field Value
    Type Description
    System.Int32

    mousePressed

    Declaration
    public int mousePressed
    Field Value
    Type Description
    System.Int32

    mouseX

    Declaration
    public int mouseX
    Field Value
    Type Description
    System.Int32

    mouseY

    Declaration
    public int mouseY
    Field Value
    Type Description
    System.Int32

    touches

    Declaration
    public NativeList<Touch> touches
    Field Value
    Type Description
    NativeList<Touch>

    Methods

    AdvanceFrame()

    Declaration
    public void AdvanceFrame()

    Clear()

    Declaration
    public void Clear()

    ContainsKey(ref NativeList<KeyCode>, KeyCode)

    Declaration
    public bool ContainsKey(ref NativeList<KeyCode> list, KeyCode c)
    Parameters
    Type Name Description
    NativeList<KeyCode> list
    KeyCode c
    Returns
    Type Description
    System.Boolean

    Dispose()

    Declaration
    public void Dispose()

    KeyDown(KeyCode)

    Declaration
    public void KeyDown(KeyCode key)
    Parameters
    Type Name Description
    KeyCode key

    KeyUp(KeyCode)

    Declaration
    public void KeyUp(KeyCode key)
    Parameters
    Type Name Description
    KeyCode key

    MouseDown(Int32)

    Declaration
    public void MouseDown(int btn)
    Parameters
    Type Name Description
    System.Int32 btn

    MouseUp(Int32)

    Declaration
    public void MouseUp(int btn)
    Parameters
    Type Name Description
    System.Int32 btn

    RemoveKey(ref NativeList<KeyCode>, KeyCode)

    Declaration
    public void RemoveKey(ref NativeList<KeyCode> list, KeyCode c)
    Parameters
    Type Name Description
    NativeList<KeyCode> list
    KeyCode c

    TouchEvent(Int32, TouchState, Int32, Int32)

    Declaration
    public void TouchEvent(int fingerId, TouchState phase, int x, int y)
    Parameters
    Type Name Description
    System.Int32 fingerId
    TouchState phase
    System.Int32 x
    System.Int32 y
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023