forked from Unity-Technologies/UnityCsReference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventSource.cs
More file actions
43 lines (36 loc) · 1.07 KB
/
EventSource.cs
File metadata and controls
43 lines (36 loc) · 1.07 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
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using UnityEngine.Bindings;
namespace UnityEngine.InputForUI;
/// <summary>
/// Beware values determinate order of some events (pointer events).
/// </summary>
[VisibleToOtherModules("UnityEngine.UIElementsModule")]
internal enum EventSource
{
/// <summary>
/// Unspecified source, can be any device or even an event generated/simulated by code.
/// </summary>
Unspecified = 0,
/// <summary>
/// Event was generated from a keyboard interaction.
/// </summary>
Keyboard = 1,
/// <summary>
/// Event was generated from a gamepad interaction.
/// </summary>
Gamepad = 2,
/// <summary>
/// Event was generated from a mouse interaction.
/// </summary>
Mouse = 3,
/// <summary>
/// Event was generated from a pen interaction.
/// </summary>
Pen = 4,
/// <summary>
/// Event was generated from a touch interaction.
/// </summary>
Touch = 5,
}