Namespace Unity.Tiny.Input | Project Tiny | 0.28.0-preview.40
docs.unity3d.com
    Show / Hide Table of Contents

    Namespace Unity.Tiny.Input

    Classes

    InputData

    InputSystem

    Sensor

    Structs

    AccelerometerSensor

    Use the accelerometer to measure the acceleration of a device. It reports the acceleration measured on a device both due to moving the device around, and due to gravity pulling the device down. Use Acceleration property (float3) to get acceleration values. Values are affected by the InputSystem.CompensateForScreenOrientation setting.

    AttitudeSensor

    Use the attitude sensor to determine the orientation of a device. Use Attitude property (quaternion) to get device orientation values. Values are affected by the InputSystem.CompensateForScreenOrientation setting.

    GravitySensor

    Use the gravity sensor to determine the direction of the gravity vector relative to a device. Use Gravity property (float3) to get gravity vector values. Values are affected by the InputSystem.CompensateForScreenOrientation setting.

    GyroscopeSensor

    Use the gyroscope to measure the angular velocity of a device. Use AngularVelocity property (float3) to get angular velocity values. Values are affected by the InputSystem.CompensateForScreenOrientation setting.

    LinearAccelerationSensor

    Use the accelerometer to measure the acceleration of a device. It reports the acceleration measured on a device due to moving the device around, without gravity effect. Use Acceleration property (float3) to get acceleration values. Values are affected by the InputSystem.CompensateForScreenOrientation setting.

    Pointer

    Pointer generalizes the mouse pointer and the touch.

    Touch

    Stores the state for a single touch point.

    Interfaces

    IPlatformSensor

    Enums

    KeyCode

    Lists key codes that you can pass to methods such as GetKey, GetKeyDown, and GetKeyUp.

    PointerModeType

    Pointer mode type

    PointerType

    Pointer type

    TouchState

    Describes potential states for the touch point.

    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