forked from hunterzonewu/unity-decompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroidInput.cs
More file actions
55 lines (47 loc) · 2.16 KB
/
AndroidInput.cs
File metadata and controls
55 lines (47 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Decompiled with JetBrains decompiler
// Type: UnityEngine.AndroidInput
// Assembly: UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: A8FF7A2C-E4EE-4232-AB17-3FCABEC16496
// Assembly location: C:\Users\Blake\sandbox\unity\test-project\Library\UnityAssemblies\UnityEngine.dll
using System.Runtime.CompilerServices;
namespace UnityEngine
{
/// <summary>
/// <para>AndroidInput provides support for off-screen touch input, such as a touchpad.</para>
/// </summary>
public sealed class AndroidInput
{
/// <summary>
/// <para>Number of secondary touches. Guaranteed not to change throughout the frame. (Read Only).</para>
/// </summary>
public static extern int touchCountSecondary { [WrapperlessIcall, MethodImpl(MethodImplOptions.InternalCall)] get; }
/// <summary>
/// <para>Property indicating whether the system provides secondary touch input.</para>
/// </summary>
public static extern bool secondaryTouchEnabled { [WrapperlessIcall, MethodImpl(MethodImplOptions.InternalCall)] get; }
/// <summary>
/// <para>Property indicating the width of the secondary touchpad.</para>
/// </summary>
public static extern int secondaryTouchWidth { [WrapperlessIcall, MethodImpl(MethodImplOptions.InternalCall)] get; }
/// <summary>
/// <para>Property indicating the height of the secondary touchpad.</para>
/// </summary>
public static extern int secondaryTouchHeight { [WrapperlessIcall, MethodImpl(MethodImplOptions.InternalCall)] get; }
private AndroidInput()
{
}
/// <summary>
/// <para>Returns object representing status of a specific touch on a secondary touchpad (Does not allocate temporary variables).</para>
/// </summary>
/// <param name="index"></param>
public static Touch GetSecondaryTouch(int index)
{
Touch touch;
AndroidInput.INTERNAL_CALL_GetSecondaryTouch(index, out touch);
return touch;
}
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_GetSecondaryTouch(int index, out Touch value);
}
}