summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-03-27 17:15:27 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2013-03-27 17:15:27 +0000
commitf7c055b0cecd90c4efd8325fc07e8a55dd9c3019 (patch)
treee20ce48869f176b7e39026967d65f8eff06c3c16 /src/lib/eeze
parentfdb479d0609c96338b54d2fe3c79cfc2025ae45c (diff)
eeze/sensor: Setup all ecore event types in init.
We had some set up but not all. Do that and avoid the redo'ing in eeze_sensor test.
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/eeze_sensor.c44
1 files changed, 38 insertions, 6 deletions
diff --git a/src/lib/eeze/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c
index 608c9f0d97..8df3187a8a 100644
--- a/src/lib/eeze/eeze_sensor.c
+++ b/src/lib/eeze/eeze_sensor.c
@@ -333,12 +333,44 @@ eeze_sensor_init(void)
333 if (!g_handle->modules) return EINA_FALSE; 333 if (!g_handle->modules) return EINA_FALSE;
334 334
335 /* Make sure we create new ecore event types before using them */ 335 /* Make sure we create new ecore event types before using them */
336 EEZE_SENSOR_EVENT_SNAP = ecore_event_type_new(); 336 if (EEZE_SENSOR_EVENT_ACCELEROMETER == 0)
337 EEZE_SENSOR_EVENT_SHAKE = ecore_event_type_new(); 337 EEZE_SENSOR_EVENT_ACCELEROMETER = ecore_event_type_new();
338 EEZE_SENSOR_EVENT_DOUBLETAP = ecore_event_type_new(); 338
339 EEZE_SENSOR_EVENT_PANNING = ecore_event_type_new(); 339 if (EEZE_SENSOR_EVENT_MAGNETIC == 0)
340 EEZE_SENSOR_EVENT_FACEDOWN = ecore_event_type_new(); 340 EEZE_SENSOR_EVENT_MAGNETIC = ecore_event_type_new();
341 EEZE_SENSOR_EVENT_ACCELEROMETER = ecore_event_type_new(); 341
342 if (EEZE_SENSOR_EVENT_ORIENTATION == 0)
343 EEZE_SENSOR_EVENT_ORIENTATION = ecore_event_type_new();
344
345 if (EEZE_SENSOR_EVENT_GYROSCOPE == 0)
346 EEZE_SENSOR_EVENT_GYROSCOPE = ecore_event_type_new();
347
348 if (EEZE_SENSOR_EVENT_LIGHT == 0)
349 EEZE_SENSOR_EVENT_LIGHT = ecore_event_type_new();
350
351 if (EEZE_SENSOR_EVENT_PROXIMITY == 0)
352 EEZE_SENSOR_EVENT_PROXIMITY = ecore_event_type_new();
353
354 if (EEZE_SENSOR_EVENT_SNAP == 0)
355 EEZE_SENSOR_EVENT_SNAP = ecore_event_type_new();
356
357 if (EEZE_SENSOR_EVENT_SHAKE == 0)
358 EEZE_SENSOR_EVENT_SHAKE = ecore_event_type_new();
359
360 if (EEZE_SENSOR_EVENT_DOUBLETAP == 0)
361 EEZE_SENSOR_EVENT_DOUBLETAP = ecore_event_type_new();
362
363 if (EEZE_SENSOR_EVENT_PANNING == 0)
364 EEZE_SENSOR_EVENT_PANNING = ecore_event_type_new();
365
366 if (EEZE_SENSOR_EVENT_FACEDOWN == 0)
367 EEZE_SENSOR_EVENT_FACEDOWN = ecore_event_type_new();
368
369 if (EEZE_SENSOR_EVENT_BAROMETER == 0)
370 EEZE_SENSOR_EVENT_BAROMETER = ecore_event_type_new();
371
372 if (EEZE_SENSOR_EVENT_TEMPERATURE == 0)
373 EEZE_SENSOR_EVENT_TEMPERATURE = ecore_event_type_new();
342 374
343 /* Core is ready so we can load the modules from disk now */ 375 /* Core is ready so we can load the modules from disk now */
344 eeze_sensor_modules_load(); 376 eeze_sensor_modules_load();