Skip to content

Commit

Permalink
[NUI] Add SetTime in Touch
Browse files Browse the repository at this point in the history
  • Loading branch information
JoogabYun authored and huiyueun committed Apr 3, 2024
1 parent 2002e39 commit 3b2d4df
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Tizen.NUI/src/internal/Interop/Interop.Touch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ internal static partial class Touch
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Touch_GetTime")]
public static extern uint GetTime(global::System.Runtime.InteropServices.HandleRef jarg1);

[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Touch_SetTime")]
public static extern void SetTime(global::System.Runtime.InteropServices.HandleRef touchEvent, ulong time);

[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Touch_GetPointCount")]
public static extern uint GetPointCount(global::System.Runtime.InteropServices.HandleRef jarg1);

Expand Down
10 changes: 10 additions & 0 deletions src/Tizen.NUI/src/public/Events/Touch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,16 @@ public DeviceSubClassType GetDeviceSubClass(uint point)
return (DeviceSubClassType)ret;
}

/// <summary>
/// sets the time (in ms) that the touch event occurred.
/// </summary>
/// <param name="time">The time (in ms)</param>
[EditorBrowsable(EditorBrowsableState.Never)]
public void SetTime(uint time)
{
Interop.Touch.SetTime(SwigCPtr, time);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}

internal static Touch GetTouchFromPtr(global::System.IntPtr cPtr)
{
Expand Down

0 comments on commit 3b2d4df

Please sign in to comment.