summaryrefslogtreecommitdiff
path: root/src/lib/ecore_imf_evas
diff options
context:
space:
mode:
authorWonkeun Oh <wonkeun.oh@samsung.com>2015-03-24 10:26:20 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2015-03-24 10:26:21 +0900
commitc7af3af835ff838d5d6dba15240d20bd4af68029 (patch)
tree8f85cd12aa71fb3f3bf0ccf0311a1c5f45dbc462 /src/lib/ecore_imf_evas
parent9a767921c552892dd1e8b6f73f4cc8d99db50fea (diff)
ecore-imf: Added the device information in the Ecore_IMF_Event structs
Summary: Added the device information in the Ecore_IMF_Event structs. Applications may require to know actual source of key event to handle it differently depending on device. Even if key events are currently generated from different devices, application couldn't distinguish it. This patch will support device information for the Ecore-imf key events. Reviewers: jihoon Reviewed By: jihoon Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2214
Diffstat (limited to 'src/lib/ecore_imf_evas')
-rw-r--r--src/lib/ecore_imf_evas/ecore_imf_evas.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore_imf_evas/ecore_imf_evas.c b/src/lib/ecore_imf_evas/ecore_imf_evas.c
index 50339624e2..69de93d92f 100644
--- a/src/lib/ecore_imf_evas/ecore_imf_evas.c
+++ b/src/lib/ecore_imf_evas/ecore_imf_evas.c
@@ -184,6 +184,9 @@ ecore_imf_evas_event_key_down_wrap(Evas_Event_Key_Down *evas_event,
184 imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty; 184 imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty;
185 imf_event->compose = evas_event->compose ? evas_event->compose : _ecore_imf_evas_event_empty; 185 imf_event->compose = evas_event->compose ? evas_event->compose : _ecore_imf_evas_event_empty;
186 imf_event->timestamp = evas_event->timestamp; 186 imf_event->timestamp = evas_event->timestamp;
187 imf_event->dev_name = evas_device_name_get(evas_event->dev) ? evas_device_name_get(evas_event->dev) : _ecore_imf_evas_event_empty;
188 imf_event->dev_class = evas_device_class_get(evas_event->dev);
189 imf_event->dev_subclass = evas_device_subclass_get(evas_event->dev);
187 _ecore_imf_evas_event_modifiers_wrap(evas_event->modifiers, &imf_event->modifiers); 190 _ecore_imf_evas_event_modifiers_wrap(evas_event->modifiers, &imf_event->modifiers);
188 _ecore_imf_evas_event_locks_wrap(evas_event->locks, &imf_event->locks); 191 _ecore_imf_evas_event_locks_wrap(evas_event->locks, &imf_event->locks);
189} 192}
@@ -209,6 +212,9 @@ ecore_imf_evas_event_key_up_wrap(Evas_Event_Key_Up *evas_event,
209 imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty; 212 imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty;
210 imf_event->compose = evas_event->compose ? evas_event->compose : _ecore_imf_evas_event_empty; 213 imf_event->compose = evas_event->compose ? evas_event->compose : _ecore_imf_evas_event_empty;
211 imf_event->timestamp = evas_event->timestamp; 214 imf_event->timestamp = evas_event->timestamp;
215 imf_event->dev_name = evas_device_name_get(evas_event->dev) ? evas_device_name_get(evas_event->dev) : _ecore_imf_evas_event_empty;
216 imf_event->dev_class = evas_device_class_get(evas_event->dev);
217 imf_event->dev_subclass = evas_device_subclass_get(evas_event->dev);
212 _ecore_imf_evas_event_modifiers_wrap(evas_event->modifiers, &imf_event->modifiers); 218 _ecore_imf_evas_event_modifiers_wrap(evas_event->modifiers, &imf_event->modifiers);
213 _ecore_imf_evas_event_locks_wrap(evas_event->locks, &imf_event->locks); 219 _ecore_imf_evas_event_locks_wrap(evas_event->locks, &imf_event->locks);
214} 220}