You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sources/engine/Stride.UI/TouchEventArgs.cs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -15,31 +15,31 @@ public class TouchEventArgs : RoutedEventArgs
15
15
/// <summary>
16
16
/// Gets the time when this event occurred.
17
17
/// </summary>
18
-
publicTimeSpanTimestamp{get;internalset;}
18
+
publicTimeSpanTimestamp{get;init;}
19
19
20
20
/// <summary>
21
21
/// Gets the action that occurred.
22
22
/// </summary>
23
-
publicTouchActionAction{get;internalset;}
23
+
publicTouchActionAction{get;init;}
24
24
25
25
/// <summary>
26
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
27
/// </summary>
28
-
publicVector2ScreenPosition{get;internalset;}
28
+
publicVector2ScreenPosition{get;init;}
29
29
30
30
/// <summary>
31
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
32
/// </summary>
33
-
publicVector2ScreenTranslation{get;internalset;}
33
+
publicVector2ScreenTranslation{get;init;}
34
34
35
35
/// <summary>
36
36
/// Gets the position of the touch in the UI virtual world space.
37
37
/// </summary>
38
-
publicVector3WorldPosition{get;internalset;}
38
+
publicVector3WorldPosition{get;init;}
39
39
40
40
/// <summary>
41
41
/// Gets the translation of the touch in the UI virtual world space.
0 commit comments