Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
TouchEventArgs.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 using SiliconStudio.Paradox.UI.Events;
7 
8 namespace SiliconStudio.Paradox.UI
9 {
10  /// <summary>
11  /// Provides data for touch input events.
12  /// </summary>
14  {
15  /// <summary>
16  /// Gets the time when this event occurred.
17  /// </summary>
18  public TimeSpan Timestamp { get; internal set; }
19 
20  /// <summary>
21  /// Gets the action that occurred.
22  /// </summary>
23  public TouchAction Action { get; internal set; }
24 
25  /// <summary>
26  /// Gets the position of the touch on the screen. Position is normalized between [0,1]. (0,0) is the left top corner, (1,1) is the right bottom corner.
27  /// </summary>
28  public Vector2 ScreenPosition { get; internal set; }
29 
30  /// <summary>
31  /// Gets the translation of the touch on the screen since last triggered event (in normalized units). (1,1) represent a translation of the top left corner to the bottom right corner.
32  /// </summary>
33  public Vector2 ScreenTranslation { get; internal set; }
34 
35  /// <summary>
36  /// Gets the position of the touch in the UI virtual world space.
37  /// </summary>
38  public Vector3 WorldPosition { get; internal set; }
39 
40  /// <summary>
41  /// Gets the translation of the touch in the UI virtual world space.
42  /// </summary>
43  public Vector3 WorldTranslation { get; internal set; }
44  }
45 }
Represents a two dimensional mathematical vector.
Definition: Vector2.cs:42
Contains state information and event data associated with a routed event.
Represents a three dimensional mathematical vector.
Definition: Vector3.cs:42
TouchAction
Describes the action of a specific touch point.
Definition: TouchAction.cs:8
Provides data for touch input events.