Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AndroidInput

Provides support for off-screen touch input, such as a touchpad.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Class
  • Namespace: UnityEngine
  • Assembly: UnityEngine.InputLegacyModule
public class AndroidInput

Static Properties

Property

Description

secondaryTouchEnabledIndicates whether the system provides secondary touch input.
secondaryTouchHeightIndicates the height of the secondary touchpad.
secondaryTouchWidthIndicates the width of the secondary touchpad.
touchCountSecondaryNumber of secondary touches. Guaranteed not to change throughout the frame (Read Only).

Static Methods

Method

Description

GetSecondaryTouchReturns an object representing the status of a specific touch on a secondary touchpad (doesn't allocate temporary variables).