ecore-drm: Add private structure to store mouse information in evdev
authorChris Michael <cp.michael@samsung.com>
Tue, 11 Mar 2014 08:41:08 +0000 (08:41 +0000)
committerChris Michael <cp.michael@samsung.com>
Tue, 11 Mar 2014 08:44:46 +0000 (08:44 +0000)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm/ecore_drm_private.h

index b0fa1c9..6579807 100644 (file)
@@ -70,7 +70,7 @@
 extern int _ecore_drm_log_dom;
 
 /* undef this for non-testing builds */
-# define LOG_TO_FILE
+//# define LOG_TO_FILE
 
 # ifdef LOG_TO_FILE
 extern FILE *lg;
@@ -187,6 +187,16 @@ struct _Ecore_Drm_Evdev
 
    struct 
      {
+        int x, y;
+        unsigned int last, prev;
+        double threshold;
+        Eina_Bool did_double : 1;
+        Eina_Bool did_triple : 1;
+        int prev_button, last_button;
+     } mouse;
+
+   struct 
+     {
         struct xkb_keymap *keymap;
         struct xkb_state *state;
         xkb_mod_mask_t ctrl_mask;