Hi,

Before the release, can't reorder these variables to able access as
common fields? (Or inheritance)
Some times I need read event_flags without know if is mouse or key event.

Common Evas_Event:
   void          *data;
   Evas_Modifier *modifiers;    //Evas_Event_Hold hasn't
   Evas_Lock     *locks;           //Evas_Event_Hold hasn't
   unsigned int      timestamp;
   Evas_Event_Flags  event_flags;
   Evas_Device      *dev;


struct _Evas_Event_Mouse_Down /** Mouse button press event */
{
   int button; /**< Mouse button number that went down (1 - 32) */

   Evas_Point output;
   Evas_Coord_Point canvas;

   void          *data;
   Evas_Modifier *modifiers;
   Evas_Lock     *locks;

   Evas_Button_Flags flags;
   unsigned int      timestamp;
   Evas_Event_Flags  event_flags;
   Evas_Device      *dev;
};

struct _Evas_Event_Key_Up /** Key release event */
{
   char          *keyname; /**< The string name of the key released */
   void          *data;
   Evas_Modifier *modifiers;
   Evas_Lock     *locks;

   const char    *key; /**< The logical key : (eg shift+1 == exclamation) */
   const char    *string; /**< A UTF8 string if this keystroke has
produced a visible string to be ADDED */
   const char    *compose; /**< A UTF8 string if this keystroke has
modified a string in the middle of being composed - this string
replaces the previous one */
   unsigned int   timestamp;
   Evas_Event_Flags  event_flags;
   Evas_Device      *dev;
};

-- 
Tiago Rezende Campos Falcão
Developer @ ProFUSION Embedded Systems

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to