summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2009-03-19 13:06:16 +0000
committerCedric BAIL <cedric.bail@free.fr>2009-03-19 13:06:16 +0000
commit2bf2c799578cbcab04246bdcffa334e916297d78 (patch)
treee258f24a30d7bbd748de56c4213733d3ed298687 /legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
parentca0470e59f6731fadecc247b2cf9c5d5455a7cc5 (diff)
* Ecore_Input: Make it generic.
SVN revision: 39577
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c41
1 files changed, 3 insertions, 38 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
index c217affde5..bac057242a 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
@@ -210,41 +210,6 @@ _ecore_evas_wince_match(Ecore_WinCE_Window *window)
210 return ee; 210 return ee;
211} 211}
212 212
213static void
214_ecore_evas_wince_mouse_move_process(Ecore_Evas *ee, int x, int y, unsigned int timestamp)
215{
216 ee->mouse.x = x;
217 ee->mouse.y = y;
218 if (ee->prop.cursor.object)
219 {
220 evas_object_show(ee->prop.cursor.object);
221 if (ee->rotation == 0)
222 evas_object_move(ee->prop.cursor.object,
223 x - ee->prop.cursor.hot.x,
224 y - ee->prop.cursor.hot.y);
225 else if (ee->rotation == 90)
226 evas_object_move(ee->prop.cursor.object,
227 ee->h - y - 1 - ee->prop.cursor.hot.x,
228 x - ee->prop.cursor.hot.y);
229 else if (ee->rotation == 180)
230 evas_object_move(ee->prop.cursor.object,
231 ee->w - x - 1 - ee->prop.cursor.hot.x,
232 ee->h - y - 1 - ee->prop.cursor.hot.y);
233 else if (ee->rotation == 270)
234 evas_object_move(ee->prop.cursor.object,
235 y - ee->prop.cursor.hot.x,
236 ee->w - x - 1 - ee->prop.cursor.hot.y);
237 }
238 if (ee->rotation == 0)
239 evas_event_feed_mouse_move(ee->evas, x, y, timestamp, NULL);
240 else if (ee->rotation == 90)
241 evas_event_feed_mouse_move(ee->evas, ee->h - y - 1, x, timestamp, NULL);
242 else if (ee->rotation == 180)
243 evas_event_feed_mouse_move(ee->evas, ee->w - x - 1, ee->h - y - 1, timestamp, NULL);
244 else if (ee->rotation == 270)
245 evas_event_feed_mouse_move(ee->evas, y, ee->w - x - 1, timestamp, NULL);
246}
247
248static int 213static int
249_ecore_evas_wince_event_key_down(void *data __UNUSED__, int type __UNUSED__, void *event) 214_ecore_evas_wince_event_key_down(void *data __UNUSED__, int type __UNUSED__, void *event)
250{ 215{
@@ -343,7 +308,7 @@ _ecore_evas_wince_event_mouse_move(void *data __UNUSED__, int type __UNUSED__, v
343 if (e->window != ee->engine.wince.window) return 1; 308 if (e->window != ee->engine.wince.window) return 1;
344 /* FIXME to do */ 309 /* FIXME to do */
345/* _ecore_evas_x_modifier_locks_update(ee, e->modifiers); */ 310/* _ecore_evas_x_modifier_locks_update(ee, e->modifiers); */
346 _ecore_evas_wince_mouse_move_process(ee, e->x, e->y, e->time); 311 _ecore_evas_mouse_move_process(ee, e->x, e->y, e->time);
347 312
348 return 1; 313 return 1;
349} 314}
@@ -365,7 +330,7 @@ _ecore_evas_wince_event_mouse_in(void *data __UNUSED__, int type __UNUSED__, voi
365 /* FIXME to do */ 330 /* FIXME to do */
366/* _ecore_evas_x_modifier_locks_update(ee, e->modifiers); */ 331/* _ecore_evas_x_modifier_locks_update(ee, e->modifiers); */
367 evas_event_feed_mouse_in(ee->evas, e->time, NULL); 332 evas_event_feed_mouse_in(ee->evas, e->time, NULL);
368 _ecore_evas_wince_mouse_move_process(ee, e->x, e->y, e->time); 333 _ecore_evas_mouse_move_process(ee, e->x, e->y, e->time);
369 334
370 return 1; 335 return 1;
371} 336}
@@ -385,7 +350,7 @@ _ecore_evas_wince_event_mouse_out(void *data __UNUSED__, int type __UNUSED__, vo
385 350
386 /* FIXME to do */ 351 /* FIXME to do */
387/* _ecore_evas_x_modifier_locks_update(ee, e->modifiers); */ 352/* _ecore_evas_x_modifier_locks_update(ee, e->modifiers); */
388 _ecore_evas_wince_mouse_move_process(ee, e->x, e->y, e->time); 353 _ecore_evas_mouse_move_process(ee, e->x, e->y, e->time);
389 354
390 evas_event_feed_mouse_out(ee->evas, e->time, NULL); 355 evas_event_feed_mouse_out(ee->evas, e->time, NULL);
391 if (ee->func.fn_mouse_out) ee->func.fn_mouse_out(ee); 356 if (ee->func.fn_mouse_out) ee->func.fn_mouse_out(ee);