summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-04-02 15:59:51 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-04-03 17:14:20 +0100
commit9d47faa761f4dfad1848e49523515d06df094267 (patch)
tree9afbf01a594ab4ca2a04835deff76db95038850c /src/lib/eeze
parent6777b743d2d63d8582b538200bb182e0258078b3 (diff)
eeze/sensor: Add more sensor types used in Tizen.
Just setting up the sensor types in the lib and fake module.
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/Eeze_Sensor.h16
-rw-r--r--src/lib/eeze/eeze_sensor.c24
2 files changed, 40 insertions, 0 deletions
diff --git a/src/lib/eeze/Eeze_Sensor.h b/src/lib/eeze/Eeze_Sensor.h
index 02a51fe385..8402604376 100644
--- a/src/lib/eeze/Eeze_Sensor.h
+++ b/src/lib/eeze/Eeze_Sensor.h
@@ -65,6 +65,9 @@
65typedef enum 65typedef enum
66{ 66{
67 EEZE_SENSOR_TYPE_ACCELEROMETER, /**< Accelerometer sensor */ 67 EEZE_SENSOR_TYPE_ACCELEROMETER, /**< Accelerometer sensor */
68 EEZE_SENSOR_TYPE_GRAVITY, /**< Gravity sensor */
69 EEZE_SENSOR_TYPE_LINEAR_ACCELERATION, /**< */
70 EEZE_SENSOR_TYPE_DEVICE_ORIENTATION, /**< */
68 EEZE_SENSOR_TYPE_MAGNETIC, /**< Magnetic sensor */ 71 EEZE_SENSOR_TYPE_MAGNETIC, /**< Magnetic sensor */
69 EEZE_SENSOR_TYPE_ORIENTATION, /**< Orientation sensor */ 72 EEZE_SENSOR_TYPE_ORIENTATION, /**< Orientation sensor */
70 EEZE_SENSOR_TYPE_GYROSCOPE, /**< Gyroscope sensor */ 73 EEZE_SENSOR_TYPE_GYROSCOPE, /**< Gyroscope sensor */
@@ -74,7 +77,12 @@ typedef enum
74 EEZE_SENSOR_TYPE_MOTION_SHAKE, /**< Shake motion sensor */ 77 EEZE_SENSOR_TYPE_MOTION_SHAKE, /**< Shake motion sensor */
75 EEZE_SENSOR_TYPE_MOTION_DOUBLETAP, /**< Doubletap motion sensor */ 78 EEZE_SENSOR_TYPE_MOTION_DOUBLETAP, /**< Doubletap motion sensor */
76 EEZE_SENSOR_TYPE_MOTION_PANNING, /**< Panning motion sensor */ 79 EEZE_SENSOR_TYPE_MOTION_PANNING, /**< Panning motion sensor */
80 EEZE_SENSOR_TYPE_MOTION_PANNING_BROWSE, /**< */
81 EEZE_SENSOR_TYPE_MOTION_TILT, /**< */
77 EEZE_SENSOR_TYPE_MOTION_FACEDOWN, /**< Facedown motion sensor */ 82 EEZE_SENSOR_TYPE_MOTION_FACEDOWN, /**< Facedown motion sensor */
83 EEZE_SENSOR_TYPE_MOTION_DIRECT_CALL, /**< */
84 EEZE_SENSOR_TYPE_MOTION_SMART_ALERT, /**< */
85 EEZE_SENSOR_TYPE_MOTION_NO_MOVE, /**< */
78 /* Non-Tizen from here */ 86 /* Non-Tizen from here */
79 EEZE_SENSOR_TYPE_BAROMETER, /**< Barometer sensor */ 87 EEZE_SENSOR_TYPE_BAROMETER, /**< Barometer sensor */
80 EEZE_SENSOR_TYPE_TEMPERATURE, /**< Temperature sensor */ 88 EEZE_SENSOR_TYPE_TEMPERATURE, /**< Temperature sensor */
@@ -96,6 +104,9 @@ typedef enum
96 * @{ 104 * @{
97 */ 105 */
98EAPI int EEZE_SENSOR_EVENT_ACCELEROMETER; 106EAPI int EEZE_SENSOR_EVENT_ACCELEROMETER;
107EAPI int EEZE_SENSOR_EVENT_GRAVITY;
108EAPI int EEZE_SENSOR_EVENT_LINEAR_ACCELERATION;
109EAPI int EEZE_SENSOR_EVENT_DEVICE_ORIENTATION;
99EAPI int EEZE_SENSOR_EVENT_MAGNETIC; 110EAPI int EEZE_SENSOR_EVENT_MAGNETIC;
100EAPI int EEZE_SENSOR_EVENT_ORIENTATION; 111EAPI int EEZE_SENSOR_EVENT_ORIENTATION;
101EAPI int EEZE_SENSOR_EVENT_GYROSCOPE; 112EAPI int EEZE_SENSOR_EVENT_GYROSCOPE;
@@ -105,7 +116,12 @@ EAPI int EEZE_SENSOR_EVENT_SNAP;
105EAPI int EEZE_SENSOR_EVENT_SHAKE; 116EAPI int EEZE_SENSOR_EVENT_SHAKE;
106EAPI int EEZE_SENSOR_EVENT_DOUBLETAP; 117EAPI int EEZE_SENSOR_EVENT_DOUBLETAP;
107EAPI int EEZE_SENSOR_EVENT_PANNING; 118EAPI int EEZE_SENSOR_EVENT_PANNING;
119EAPI int EEZE_SENSOR_EVENT_PANNING_BROWSE;
120EAPI int EEZE_SENSOR_EVENT_TILT;
108EAPI int EEZE_SENSOR_EVENT_FACEDOWN; 121EAPI int EEZE_SENSOR_EVENT_FACEDOWN;
122EAPI int EEZE_SENSOR_EVENT_DIRECT_CALL;
123EAPI int EEZE_SENSOR_EVENT_SMART_ALERT;
124EAPI int EEZE_SENSOR_EVENT_NO_MOVE;
109EAPI int EEZE_SENSOR_EVENT_BAROMETER; 125EAPI int EEZE_SENSOR_EVENT_BAROMETER;
110EAPI int EEZE_SENSOR_EVENT_TEMPERATURE; 126EAPI int EEZE_SENSOR_EVENT_TEMPERATURE;
111/**@}*/ 127/**@}*/
diff --git a/src/lib/eeze/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c
index 8df3187a8a..107221dfd4 100644
--- a/src/lib/eeze/eeze_sensor.c
+++ b/src/lib/eeze/eeze_sensor.c
@@ -336,6 +336,15 @@ eeze_sensor_init(void)
336 if (EEZE_SENSOR_EVENT_ACCELEROMETER == 0) 336 if (EEZE_SENSOR_EVENT_ACCELEROMETER == 0)
337 EEZE_SENSOR_EVENT_ACCELEROMETER = ecore_event_type_new(); 337 EEZE_SENSOR_EVENT_ACCELEROMETER = ecore_event_type_new();
338 338
339 if (EEZE_SENSOR_EVENT_GRAVITY == 0)
340 EEZE_SENSOR_EVENT_GRAVITY = ecore_event_type_new();
341
342 if (EEZE_SENSOR_EVENT_LINEAR_ACCELERATION == 0)
343 EEZE_SENSOR_EVENT_LINEAR_ACCELERATION = ecore_event_type_new();
344
345 if (EEZE_SENSOR_EVENT_DEVICE_ORIENTATION == 0)
346 EEZE_SENSOR_EVENT_DEVICE_ORIENTATION = ecore_event_type_new();
347
339 if (EEZE_SENSOR_EVENT_MAGNETIC == 0) 348 if (EEZE_SENSOR_EVENT_MAGNETIC == 0)
340 EEZE_SENSOR_EVENT_MAGNETIC = ecore_event_type_new(); 349 EEZE_SENSOR_EVENT_MAGNETIC = ecore_event_type_new();
341 350
@@ -363,9 +372,24 @@ eeze_sensor_init(void)
363 if (EEZE_SENSOR_EVENT_PANNING == 0) 372 if (EEZE_SENSOR_EVENT_PANNING == 0)
364 EEZE_SENSOR_EVENT_PANNING = ecore_event_type_new(); 373 EEZE_SENSOR_EVENT_PANNING = ecore_event_type_new();
365 374
375 if (EEZE_SENSOR_EVENT_PANNING_BROWSE == 0)
376 EEZE_SENSOR_EVENT_PANNING_BROWSE = ecore_event_type_new();
377
378 if (EEZE_SENSOR_EVENT_TILT == 0)
379 EEZE_SENSOR_EVENT_TILT = ecore_event_type_new();
380
366 if (EEZE_SENSOR_EVENT_FACEDOWN == 0) 381 if (EEZE_SENSOR_EVENT_FACEDOWN == 0)
367 EEZE_SENSOR_EVENT_FACEDOWN = ecore_event_type_new(); 382 EEZE_SENSOR_EVENT_FACEDOWN = ecore_event_type_new();
368 383
384 if (EEZE_SENSOR_EVENT_DIRECT_CALL == 0)
385 EEZE_SENSOR_EVENT_DIRECT_CALL = ecore_event_type_new();
386
387 if (EEZE_SENSOR_EVENT_SMART_ALERT == 0)
388 EEZE_SENSOR_EVENT_SMART_ALERT = ecore_event_type_new();
389
390 if (EEZE_SENSOR_EVENT_NO_MOVE == 0)
391 EEZE_SENSOR_EVENT_NO_MOVE = ecore_event_type_new();
392
369 if (EEZE_SENSOR_EVENT_BAROMETER == 0) 393 if (EEZE_SENSOR_EVENT_BAROMETER == 0)
370 EEZE_SENSOR_EVENT_BAROMETER = ecore_event_type_new(); 394 EEZE_SENSOR_EVENT_BAROMETER = ecore_event_type_new();
371 395