Namespace Unity.Tiny.Input | Project Tiny | 0.31.0-preview.24
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 06 November 2020