Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GestureEvent.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 namespace SiliconStudio.Paradox.Input
6 {
7  /// <summary>
8  /// Base class for the gesture events.
9  /// </summary>
10  public abstract class GestureEvent
11  {
12  internal GestureEvent()
13  {}
14 
15  /// <summary>
16  /// The state of the gesture.
17  /// </summary>
18  public GestureState State { get; internal set; }
19 
20  /// <summary>
21  /// The type of the gesture.
22  /// </summary>
23  public GestureType Type { get; internal set; }
24 
25  /// <summary>
26  /// The number of fingers involved in the gesture.
27  /// </summary>
28  public int NumberOfFinger { get; internal set; }
29 
30  /// <summary>
31  /// The time elapsed between the two last events of the gesture.
32  /// </summary>
33  /// <remarks>This value is equal to <see cref="TotalTime"/> for discrete gestures.</remarks>
34  public TimeSpan DeltaTime { get; internal set; }
35 
36  /// <summary>
37  /// The time elapsed since the beginning of the gesture.
38  /// </summary>
39  public TimeSpan TotalTime { get; internal set; }
40  }
41 }
GestureState
The different possible states of a gestures.
Definition: GestureState.cs:8
GestureType
List all the available type of Gestures.
Definition: GestureType.cs:9
Base class for the gesture events.
Definition: GestureEvent.cs:10