2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
14 # ifdef EFL_ECORE_INPUT_BUILD
16 # define EAPI __declspec(dllexport)
19 # endif /* ! DLL_EXPORT */
21 # define EAPI __declspec(dllimport)
22 # endif /* ! EFL_ECORE_INPUT_BUILD */
26 # define EAPI __attribute__ ((visibility("default")))
39 EAPI extern int ECORE_EVENT_KEY_DOWN;
40 EAPI extern int ECORE_EVENT_KEY_UP;
41 EAPI extern int ECORE_EVENT_MOUSE_BUTTON_DOWN;
42 EAPI extern int ECORE_EVENT_MOUSE_BUTTON_UP;
43 EAPI extern int ECORE_EVENT_MOUSE_MOVE;
44 EAPI extern int ECORE_EVENT_MOUSE_WHEEL;
45 EAPI extern int ECORE_EVENT_MOUSE_IN;
46 EAPI extern int ECORE_EVENT_MOUSE_OUT;
48 #define ECORE_EVENT_MODIFIER_SHIFT 0x0001
49 #define ECORE_EVENT_MODIFIER_CTRL 0x0002
50 #define ECORE_EVENT_MODIFIER_ALT 0x0004
51 #define ECORE_EVENT_MODIFIER_WIN 0x0008
52 #define ECORE_EVENT_MODIFIER_SCROLL 0x0010
53 #define ECORE_EVENT_MODIFIER_NUM 0x0020
54 #define ECORE_EVENT_MODIFIER_CAPS 0x0040
55 #define ECORE_EVENT_LOCK_SCROLL 0x0080
56 #define ECORE_EVENT_LOCK_NUM 0x0100
57 #define ECORE_EVENT_LOCK_CAPS 0x0200
59 typedef uintptr_t Ecore_Window;
61 typedef struct _Ecore_Event_Key Ecore_Event_Key;
62 struct _Ecore_Event_Key
69 Ecore_Window root_window;
70 Ecore_Window event_window;
72 unsigned int timestamp;
73 unsigned int modifiers;
78 typedef struct _Ecore_Event_Mouse_Button Ecore_Event_Mouse_Button;
79 struct _Ecore_Event_Mouse_Button
82 Ecore_Window root_window;
83 Ecore_Window event_window;
85 unsigned int timestamp;
86 unsigned int modifiers;
88 unsigned int double_click;
89 unsigned int triple_click;
101 typedef struct _Ecore_Event_Mouse_Wheel Ecore_Event_Mouse_Wheel;
102 struct _Ecore_Event_Mouse_Wheel
105 Ecore_Window root_window;
106 Ecore_Window event_window;
108 unsigned int timestamp;
109 unsigned int modifiers;
124 typedef struct _Ecore_Event_Mouse_Move Ecore_Event_Mouse_Move;
125 struct _Ecore_Event_Mouse_Move
128 Ecore_Window root_window;
129 Ecore_Window event_window;
131 unsigned int timestamp;
132 unsigned int modifiers;
145 typedef struct _Ecore_Event_Mouse_IO Ecore_Event_Mouse_IO;
146 struct _Ecore_Event_Mouse_IO
149 Ecore_Window event_window;
151 unsigned int timestamp;
152 unsigned int modifiers;
158 enum _Ecore_Event_Modifier
170 enum _Ecore_Event_Press
182 typedef enum _Ecore_Event_IO Ecore_Event_IO;
183 typedef enum _Ecore_Event_Press Ecore_Event_Press;
184 typedef enum _Ecore_Event_Modifier Ecore_Event_Modifier;
186 typedef struct _Ecore_Event_Modifiers Ecore_Event_Modifiers;
187 struct _Ecore_Event_Modifiers
190 unsigned int array[ECORE_LAST];
193 EAPI int ecore_event_init(void);
194 EAPI int ecore_event_shutdown(void);
196 EAPI unsigned int ecore_event_modifier_mask(Ecore_Event_Modifier modifier);
197 EAPI Ecore_Event_Modifier ecore_event_update_modifier(const char *key, Ecore_Event_Modifiers *modifiers, int inc);