Well, it is all going to get gutted at some point when we move back to libinput 
anyway

Dh


-----Original Message-----
From: Mike Blumenkrantz [mailto:michael.blumenkra...@gmail.com] 
Sent: 18 March 2014 20:23
To: g...@lists.enlightenment.org
Subject: [EGIT] [core/efl] master 01/01: ecore drm evdev probably shouldn't 
treat my touchpad as a keyboard (BTN_TOOL_FINGER)

discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2aabdb8f48a106ed0fbb9d673828381d0256f013

commit 2aabdb8f48a106ed0fbb9d673828381d0256f013
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Tue Mar 18 16:11:32 2014 -0400

    ecore drm evdev probably shouldn't treat my touchpad as a keyboard 
(BTN_TOOL_FINGER)
    
    this is pretty insane and likely needs more competent/reliable handling
---
 src/lib/ecore_drm/ecore_drm_evdev.c | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)

diff --git a/src/lib/ecore_drm/ecore_drm_evdev.c 
b/src/lib/ecore_drm/ecore_drm_evdev.c
index 4b89c21..c6020d0 100644
--- a/src/lib/ecore_drm/ecore_drm_evdev.c
+++ b/src/lib/ecore_drm/ecore_drm_evdev.c
@@ -541,22 +541,10 @@ _device_process_key(Ecore_Drm_Evdev *dev, struct 
input_event *event, unsigned in
 
    _device_process_flush(dev, timestamp);
 
-   switch (event->code)
-     {
-      case BTN_LEFT:
-      case BTN_RIGHT:
-      case BTN_MIDDLE:
-      case BTN_SIDE:
-      case BTN_EXTRA:
-      case BTN_FORWARD:
-      case BTN_BACK:
-      case BTN_TASK:
-        _device_notify_button(dev, event, timestamp);
-        break;
-      default:
-        _device_notify_key(dev, event, timestamp);
-        break;
-     }
+   if ((event->code >= BTN_LEFT) && (event->code <= BTN_TASK))
+     _device_notify_button(dev, event, timestamp);
+   else if ((event->code >= KEY_ESC) && (event->code <= KEY_MICMUTE))
+     _device_notify_key(dev, event, timestamp);
 }
 
 static void 

-- 




------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to