Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GestureEventLongPress.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 using SiliconStudio.Core.Mathematics;
6 
7 namespace SiliconStudio.Paradox.Input
8 {
9  /// <summary>
10  /// Event class for the LongPress gesture.
11  /// </summary>
12  public sealed class GestureEventLongPress : GestureEvent
13  {
14  /// <summary>
15  /// The position (in pixels) where the LongPress gesture happened.
16  /// </summary>
17  public Vector2 Position { get; internal set; }
18 
19  internal GestureEventLongPress(int numberOfFinger, TimeSpan time, Vector2 position)
20  {
21  State = GestureState.Occurred;
22  Type = GestureType.LongPress;
23  NumberOfFinger = numberOfFinger;
24  DeltaTime = time;
25  TotalTime = time;
26  Position = position;
27  }
28  }
29 }
Represents a two dimensional mathematical vector.
Definition: Vector2.cs:42
Event class for the LongPress gesture.
Base class for the gesture events.
Definition: GestureEvent.cs:10