UnityEngine.InputLegacyModule Structure describing acceleration status of the device. Value of acceleration. Amount of time passed since last accelerometer measurement. AndroidInput provides support for off-screen touch input, such as a touchpad. Property indicating whether the system provides secondary touch input. Property indicating the height of the secondary touchpad. Property indicating the width of the secondary touchpad. Number of secondary touches. Guaranteed not to change throughout the frame. (Read Only). Returns object representing status of a specific touch on a secondary touchpad (Does not allocate temporary variables). Interface into compass functionality. Used to enable or disable compass. Note, that if you want Input.compass.trueHeading property to contain a valid value, you must also enable location updates by calling Input.location.Start(). Accuracy of heading reading in degrees. The heading in degrees relative to the magnetic North Pole. (Read Only) The raw geomagnetic data measured in microteslas. (Read Only) Timestamp (in seconds since 1970) when the heading was last time updated. (Read Only) The heading in degrees relative to the geographic North Pole. (Read Only) Describes physical orientation of the device as determined by the OS. The device is held parallel to the ground with the screen facing downwards. The device is held parallel to the ground with the screen facing upwards. The device is in landscape mode, with the device held upright and the home button on the right side. The device is in landscape mode, with the device held upright and the home button on the left side. The device is in portrait mode, with the device held upright and the home button at the bottom. The device is in portrait mode but upside down, with the device held upright and the home button at the top. The orientation of the device cannot be determined. Interface into the Gyroscope. Returns the attitude (ie, orientation in space) of the device. Sets or retrieves the enabled status of this gyroscope. Returns the gravity acceleration vector expressed in the device's reference frame. Returns rotation rate as measured by the device's gyroscope. Returns unbiased rotation rate as measured by the device's gyroscope. Sets or retrieves gyroscope interval in seconds. Returns the acceleration that the user is giving to the device. Controls IME input. Enable IME input only when a text field is selected (default). Disable IME input. Enable IME input. Interface into the Input system. Last measured linear acceleration of a device in three-dimensional space. (Read Only) Number of acceleration measurements which occurred during last frame. Returns list of acceleration measurements which occurred during the last frame. (Read Only) (Allocates temporary variables). Is any key or mouse button currently held down? (Read Only) Returns true the first frame the user hits any key or mouse button. (Read Only) Should Back button quit the application? Only usable on Android, Windows Phone or Windows Tablets. Property for accessing compass (handheld devices only). (Read Only) This property controls if input sensors should be compensated for screen orientation. The current text input position used by IMEs to open windows. The current IME composition string being typed by the user. Device physical orientation as reported by OS. (Read Only) Property indicating whether keypresses are eaten by a textinput if it has focus (default true). Returns default gyroscope. Controls enabling and disabling of IME input composition. Does the user have an IME keyboard input source selected? Returns the keyboard input entered this frame. (Read Only) Property for accessing device location (handheld devices only). (Read Only) The current mouse position in pixel coordinates. (Read Only). Indicates if a mouse device is detected. The current mouse scroll delta. (Read Only) Property indicating whether the system handles multiple touches. Enables/Disables mouse simulation with touches. By default this option is enabled. Returns true when Stylus Touch is supported by a device or platform. Number of touches. Guaranteed not to change throughout the frame. (Read Only) Returns list of objects representing status of all touches during last frame. (Read Only) (Allocates temporary variables). Bool value which let's users check if touch pressure is supported. Returns whether the device on which application is currently running supports touch input. Returns specific acceleration measurement which occurred during last frame. (Does not allocate temporary variables). Returns the value of the virtual axis identified by axisName. Returns the value of the virtual axis identified by axisName with no smoothing filtering applied. Returns true while the virtual button identified by buttonName is held down. The name of the button such as Jump. True when an axis has been pressed and not released. Returns true during the frame the user pressed down the virtual button identified by buttonName. Returns true the first frame the user releases the virtual button identified by buttonName. Retrieves a list of input device names corresponding to the index of an Axis configured within Input Manager. Returns an array of joystick and gamepad device names. Returns true while the user holds down the key identified by name. Returns true while the user holds down the key identified by the key KeyCode enum parameter. Returns true during the frame the user starts pressing down the key identified by name. Returns true during the frame the user starts pressing down the key identified by the key KeyCode enum parameter. Returns true during the frame the user releases the key identified by name. Returns true during the frame the user releases the key identified by the key KeyCode enum parameter. Returns whether the given mouse button is held down. Returns true during the frame the user pressed the given mouse button. Returns true during the frame the user releases the given mouse button. Call Input.GetTouch to obtain a Touch struct. The touch input on the device screen. Touch details in the struct. Determine whether a particular joystick model has been preconfigured by Unity. (Linux-only). The name of the joystick to check (returned by Input.GetJoystickNames). True if the joystick layout has been preconfigured; false otherwise. Resets all input. After ResetInputAxes all axes return to 0 and all buttons return to 0 for one frame. Structure describing device location. Geographical device location altitude. Horizontal accuracy of the location. Geographical device location latitude. Geographical device location longitude. Timestamp (in seconds since 1970) when location was last time updated. Vertical accuracy of the location. Provides methods that allow an application to access the device's location. Indicates whether the device allows access the application to access the location service. The last geographical location that the device registered. Returns the location service status. Starts location service updates. The service accuracy you want to use, in meters. This determines the accuracy of the device's last location coordinates. Higher values like 500 don't require the device to use its GPS chip and thus save battery power. Lower values like 5-10 provide the best accuracy but require the GPS chip and thus use more battery power. The default value is 10 meters. The minimum distance, in meters, that the device must move laterally before Unity updates Input.location. Higher values like 500 produce fewer updates and are less resource intensive to process. The default is 10 meters. Starts location service updates. The service accuracy you want to use, in meters. This determines the accuracy of the device's last location coordinates. Higher values like 500 don't require the device to use its GPS chip and thus save battery power. Lower values like 5-10 provide the best accuracy but require the GPS chip and thus use more battery power. The default value is 10 meters. The minimum distance, in meters, that the device must move laterally before Unity updates Input.location. Higher values like 500 produce fewer updates and are less resource intensive to process. The default is 10 meters. Starts location service updates. The service accuracy you want to use, in meters. This determines the accuracy of the device's last location coordinates. Higher values like 500 don't require the device to use its GPS chip and thus save battery power. Lower values like 5-10 provide the best accuracy but require the GPS chip and thus use more battery power. The default value is 10 meters. The minimum distance, in meters, that the device must move laterally before Unity updates Input.location. Higher values like 500 produce fewer updates and are less resource intensive to process. The default is 10 meters. Stops location service updates. This is useful to save battery power when the application doesn't require the location service. Describes the location service status for a device. Location service initialization failed. The user denied access to the location service. The location service is initializing. The location service is running and the application can query for locations. The location service is not running. Structure describing the status of a finger touching the screen. Value of 0 radians indicates that the stylus is parallel to the surface, pi/2 indicates that it is perpendicular. Value of 0 radians indicates that the stylus is pointed along the x-axis of the device. The position delta since last change in pixel coordinates. Amount of time that has passed since the last recorded change in Touch values. The unique index for the touch. The maximum possible pressure value for a platform. If Input.touchPressureSupported returns false, the value of this property will always be 1.0f. Describes the phase of the touch. The position of the touch in screen space pixel coordinates. The current amount of pressure being applied to a touch. 1.0f is considered to be the pressure of an average touch. If Input.touchPressureSupported returns false, the value of this property will always be 1.0f. An estimated value of the radius of a touch. Add radiusVariance to get the maximum touch size, subtract it to get the minimum touch size. This value determines the accuracy of the touch radius. Add this value to the radius to get the maximum touch size, subtract it to get the minimum touch size. The first position of the touch contact in screen space pixel coordinates. Number of taps. A value that indicates whether a touch was of Direct, Indirect (or remote), or Stylus type. Describes phase of a finger touch. A finger touched the screen. The system cancelled tracking for the touch. A finger was lifted from the screen. This is the final phase of a touch. A finger moved on the screen. A finger is touching the screen but hasn't moved. Describes whether a touch is direct, indirect (or remote), or from a stylus. A direct touch on a device. An Indirect, or remote, touch on a device. A touch from a stylus on a device. The InputLegacy module implements the Input class used to read player Input.