summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_private.h
diff options
context:
space:
mode:
authorSung-Jin Park <input.hacker@gmail.com>2015-12-28 09:18:05 -0500
committerChris Michael <cpmichael@osg.samsung.com>2015-12-28 09:24:58 -0500
commit936350d37fd7d2ba695584db079cfc98eb13faed (patch)
treeead2459b3db125eb383b9b2d9b0d387b7a1ea5c2 /src/lib/ecore_drm/ecore_drm_private.h
parentd91e403a98f5343b31aaaa2bda2e24cf27156cf8 (diff)
ecore-drm: Add APIs to support key remap functionality
Summary: This adds two new APIs to enable/set key remap functionality and a number of keys to be remapped to the other keys. As of now there is no api to do this therefore we need to remap using linux utility such as 'setkeycodes'. By adding/calling these apis, each Ecore_Drm_Evdev device will have its specific key remap hash and we can apply each remapping keys for each key/keyboard device. Test Plan: (1) Enable key remap and set remapping of a key on a specific keyboard device (2) Plug in the keyboard device and check the key is being remapped or not (3) Check the other keys are coming normally (4) Check the the remapping key on a specific keyboard doesn't affect to any other devices Signed-off-by: Sung-Jin Park <input.hacker@gmail.com> Reviewers: raster, zmike, gwanglim, ManMower, devilhorns Subscribers: JHyun, ohduna, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3463
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm/ecore_drm_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_private.h b/src/lib/ecore_drm/ecore_drm_private.h
index fbc6bda00e..6d30dee56b 100644
--- a/src/lib/ecore_drm/ecore_drm_private.h
+++ b/src/lib/ecore_drm/ecore_drm_private.h
@@ -225,6 +225,9 @@ struct _Ecore_Drm_Evdev
225 unsigned int depressed, latched, locked, group; 225 unsigned int depressed, latched, locked, group;
226 } xkb; 226 } xkb;
227 227
228 Eina_Hash *key_remap_hash;
229 Eina_Bool key_remap_enabled : 1;
230
228 /* Ecore_Drm_Evdev_Capabilities caps; */ 231 /* Ecore_Drm_Evdev_Capabilities caps; */
229 Ecore_Drm_Seat_Capabilities seat_caps; 232 Ecore_Drm_Seat_Capabilities seat_caps;
230}; 233};