summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2011-10-27 19:29:08 +0000
committerRafael Antognolli <antognolli@gmail.com>2011-10-27 19:29:08 +0000
commit53031cf572ed112e6fe4f802f20140d5305148e4 (patch)
treeb1bb8f74865b60d2573f1910f4d946908877487f /legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
parent44538e442a60694c41b0969649ce1cc64c04beef (diff)
ecore/fb: Change fb engine input to use ecore_input_evas.
Nothing changes, only making the ecore fb engine to send keyboard and mouse events using ecore_input_evas, instead of its own ecore events. Patch for SiT. SVN revision: 64447
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h91
1 files changed, 1 insertions, 90 deletions
diff --git a/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h b/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
index 416ab9d246..37b9e1e6cd 100644
--- a/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
+++ b/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
@@ -65,101 +65,12 @@ enum _Ecore_Fb_Input_Device_Cap
65 */ 65 */
66typedef enum _Ecore_Fb_Input_Device_Cap Ecore_Fb_Input_Device_Cap; 66typedef enum _Ecore_Fb_Input_Device_Cap Ecore_Fb_Input_Device_Cap;
67 67
68EAPI extern int ECORE_FB_EVENT_KEY_DOWN; /**< FB Key Down event */
69EAPI extern int ECORE_FB_EVENT_KEY_UP; /**< FB Key Up event */
70EAPI extern int ECORE_FB_EVENT_MOUSE_BUTTON_DOWN; /**< FB Mouse Down event */
71EAPI extern int ECORE_FB_EVENT_MOUSE_BUTTON_UP; /**< FB Mouse Up event */
72EAPI extern int ECORE_FB_EVENT_MOUSE_MOVE; /**< FB Mouse Move event */
73EAPI extern int ECORE_FB_EVENT_MOUSE_WHEEL; /**< FB Mouse Wheel event */
74
75typedef struct _Ecore_Fb_Event_Key_Down Ecore_Fb_Event_Key_Down; /**< FB Key Down event */
76typedef struct _Ecore_Fb_Event_Key_Up Ecore_Fb_Event_Key_Up; /**< FB Key Up event */
77typedef struct _Ecore_Fb_Event_Mouse_Button_Down Ecore_Fb_Event_Mouse_Button_Down; /**< FB Mouse Down event */
78typedef struct _Ecore_Fb_Event_Mouse_Button_Up Ecore_Fb_Event_Mouse_Button_Up; /**< FB Mouse Up event */
79typedef struct _Ecore_Fb_Event_Mouse_Move Ecore_Fb_Event_Mouse_Move; /**< FB Mouse Move event */
80typedef struct _Ecore_Fb_Event_Mouse_Wheel Ecore_Fb_Event_Mouse_Wheel; /**< FB Mouse Wheel event */
81
82/**
83 * @struct _Ecore_Fb_Event_Key_Down
84 * Framebuffer Key Down event.
85 */
86struct _Ecore_Fb_Event_Key_Down
87{
88 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */
89 char *keyname; /**< The name of the key that was pressed */
90 char *keysymbol; /**< The logical symbol of the key that was pressed */
91 char *key_compose; /**< The UTF-8 string conversion if any */
92};
93
94/**
95 * @struct _Ecore_Fb_Event_Key_Up
96 * Framebuffer Key Up event.
97 */
98struct _Ecore_Fb_Event_Key_Up
99{
100 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */
101 char *keyname; /**< The name of the key that was released */
102 char *keysymbol; /**< The logical symbol of the key that was pressed */
103 char *key_compose; /**< The UTF-8 string conversion if any */
104};
105
106/**
107 * @struct _Ecore_Fb_Event_Mouse_Button_Down
108 * Framebuffer Mouse Down event.
109 */
110struct _Ecore_Fb_Event_Mouse_Button_Down
111{
112 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */
113 int button; /**< Mouse button that was pressed (1 - 32) */
114 int x; /**< Mouse co-ordinates when mouse button was pressed */
115 int y; /**< Mouse co-ordinates when mouse button was pressed */
116 int double_click : 1; /**< Set if click was a double click */
117 int triple_click : 1; /**< Set if click was a triple click */
118};
119
120/**
121 * @struct _Ecore_Fb_Event_Mouse_Button_Up
122 * Framebuffer Mouse Up event.
123 */
124struct _Ecore_Fb_Event_Mouse_Button_Up
125{
126 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */
127 int button; /**< Mouse button that was released (1 - 32) */
128 int x; /**< Mouse co-ordinates when mouse button was raised */
129 int y; /**< Mouse co-ordinates when mouse button was raised */
130 int double_click : 1; /**< Set if click was a double click */
131 int triple_click : 1; /**< Set if click was a triple click */
132};
133
134/**
135 * @struct _Ecore_Fb_Event_Mouse_Move
136 * Framebuffer Mouse Move event.
137 */
138struct _Ecore_Fb_Event_Mouse_Move
139{
140 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */
141 int x; /**< Mouse co-ordinates where the mouse cursor moved to */
142 int y; /**< Mouse co-ordinates where the mouse cursor moved to */
143};
144
145/**
146 * @struct _Ecore_Fb_Event_Mouse_Wheel
147 * Framebuffer Mouse Wheel event.
148 */
149struct _Ecore_Fb_Event_Mouse_Wheel
150{
151 Ecore_Fb_Input_Device *dev;
152 int x,y;
153 int direction; /* 0 = vertical, 1 = horizontal */
154 int wheel; /* value 1 (left/up), -1 (right/down) */
155};
156
157/* ecore_fb_vt.c */ 68/* ecore_fb_vt.c */
158EAPI void ecore_fb_callback_gain_set(void (*func) (void *data), void *data); 69EAPI void ecore_fb_callback_gain_set(void (*func) (void *data), void *data);
159EAPI void ecore_fb_callback_lose_set(void (*func) (void *data), void *data); 70EAPI void ecore_fb_callback_lose_set(void (*func) (void *data), void *data);
160 71
161/* ecore_fb_li.c */ 72/* ecore_fb_li.c */
162EAPI Ecore_Fb_Input_Device *ecore_fb_input_device_open(const char *dev); 73EAPI Ecore_Fb_Input_Device *ecore_fb_input_device_open(void *window, const char *dev);
163EAPI void ecore_fb_input_device_close(Ecore_Fb_Input_Device *dev); 74EAPI void ecore_fb_input_device_close(Ecore_Fb_Input_Device *dev);
164EAPI void ecore_fb_input_device_listen(Ecore_Fb_Input_Device *dev, Eina_Bool listen); 75EAPI void ecore_fb_input_device_listen(Ecore_Fb_Input_Device *dev, Eina_Bool listen);
165EAPI const char *ecore_fb_input_device_name_get(Ecore_Fb_Input_Device *dev); 76EAPI const char *ecore_fb_input_device_name_get(Ecore_Fb_Input_Device *dev);