From: Eunki Hong Date: Mon, 25 Sep 2023 16:22:41 +0000 (+0900) Subject: [NUI] Implement defaut key construct X-Git-Tag: accepted/tizen/8.0/unified/20240613.065534~202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec2af1bcdae2fa376f8a096405acfc8bdaa3e799;hp=85c7d0d4e7a0e178e36e25c76a183dfe0f87c5cc;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Implement defaut key construct Let we use default key creation API if we only need to use empty key handle. Signed-off-by: Eunki Hong --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Key.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Key.cs index fdce0aa..18a7e6a 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Key.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Key.cs @@ -33,6 +33,9 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Key_New")] public static extern global::System.IntPtr New(string jarg1, string jarg2, int jarg3, int jarg4, uint jarg5, int jarg6); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Key_New__SWIG_1")] + public static extern global::System.IntPtr New(); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_Key")] public static extern void DeleteKey(global::System.Runtime.InteropServices.HandleRef jarg1); diff --git a/src/Tizen.NUI/src/public/Input/Key.cs b/src/Tizen.NUI/src/public/Input/Key.cs index c17c299..2ce31b9 100755 --- a/src/Tizen.NUI/src/public/Input/Key.cs +++ b/src/Tizen.NUI/src/public/Input/Key.cs @@ -30,7 +30,7 @@ namespace Tizen.NUI /// The default constructor. /// /// 3 - public Key() : this(Interop.Key.New("", "", 0, 0, 0u, 0), true) + public Key() : this(Interop.Key.New(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } diff --git a/src/Tizen.NUI/src/public/Window/Window.cs b/src/Tizen.NUI/src/public/Window/Window.cs index c35c464..e9e2081 100755 --- a/src/Tizen.NUI/src/public/Window/Window.cs +++ b/src/Tizen.NUI/src/public/Window/Window.cs @@ -2119,7 +2119,7 @@ namespace Tizen.NUI if (internalLastKeyEvent == null || !internalLastKeyEvent.HasBody()) { // Create empty event handle without register. - internalLastKeyEvent = new Key(Interop.Key.New("", "", 0, 0, 0u, 0), false); + internalLastKeyEvent = new Key(Interop.Key.New(), false); } Interop.Window.InternalRetrievingLastKeyEvent(SwigCPtr, internalLastKeyEvent.SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();