[ACR-564] deprecate unused API
[platform/core/csapi/tizenfx.git] / src / ElmSharp / ElmSharp / EcoreKeyEventArgs.cs
old mode 100755 (executable)
new mode 100644 (file)
index d057716..30bc4d5
 using System;
 using System.Runtime.InteropServices;
 
+using Tizen.Internals;
+
 namespace ElmSharp
 {
     /// <summary>
     /// It inherits System.EventArgs.
-    /// The EcoreKeyEventArgs is a EventArgs to record Ecore event's key name and key code.
+    /// The EcoreKeyEventArgs is an EventArgs to record the Ecore event's key name and key code.
     /// </summary>
+    /// <since_tizen> preview </since_tizen>
+    [Obsolete("This has been deprecated in API12")]
     public class EcoreKeyEventArgs : EventArgs
     {
         /// <summary>
-        /// Gets the KeyName property.The return type is string.
+        /// Gets the KeyName property. The return type is string.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public string KeyName { get; private set; }
         /// <summary>
-        /// Gets the KeyCode property.The return type is int.
+        /// Gets the KeyCode property. The return type is int.
         /// </summary>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public int KeyCode { get; private set; }
 
         /// <summary>
@@ -39,14 +47,17 @@ namespace ElmSharp
         /// </summary>
         /// <param name="data">data</param>
         /// <param name="type">type</param>
-        /// <param name="info">information </param>
-        /// <returns>new instance of the EcoreKeyEventArgs class</returns>
+        /// <param name="info">information</param>
+        /// <returns>New instance of the EcoreKeyEventArgs class.</returns>
+        /// <since_tizen> preview </since_tizen>
+        [Obsolete("This has been deprecated in API12")]
         public static EcoreKeyEventArgs Create(IntPtr data, EcoreEventType type, IntPtr info)
         {
             var evt = Marshal.PtrToStructure<EcoreEventKey>(info);
             return new EcoreKeyEventArgs { KeyName = evt.keyname, KeyCode = (int)evt.keycode };
         }
 
+        [NativeStruct("Ecore_Event_Key", Include = "Elementary.h", PkgConfig = "elementary")]
         [StructLayout(LayoutKind.Sequential)]
         struct EcoreEventKey
         {
@@ -63,6 +74,7 @@ namespace ElmSharp
             public uint keycode;
             public IntPtr data;
             public IntPtr dev;
+            public int event_flags;
         }
     }
 }