[-]
[+]
|
Changed |
_service:tar_git:ngfd-plugin-droid-vibrator.changes
|
|
[-]
[+]
|
Changed |
_service:tar_git:ngfd-plugin-droid-vibrator.spec
^
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -3,6 +3,6 @@
<service name="tar_git">
<param name="url">https://github.com/mer-hybris/ngfd-plugin-droid-vibrator.git</param>
<param name="branch">master</param>
- <param name="revision">HEAD</param>
+ <param name="revision">c883b5392db126b9b432486500cf977482d50240</param>
</service>
</services>
|
[-]
[+]
|
Changed |
_service:tar_git:ngfd-plugin-droid-vibrator-0.91.0.tar.gz/src/droid-vibrator.c
^
|
@@ -22,6 +22,7 @@
*/
#include <ngf/plugin.h>
+#include <ngf/haptic.h>
#include <hardware_legacy/vibrator.h>
#define AV_KEY "plugin.droid-vibrator.data"
@@ -56,11 +57,8 @@
static int
droid_vibrator_sink_can_handle (NSinkInterface *iface, NRequest *request)
{
- (void) iface;
- (void) request;
-
N_DEBUG (LOG_CAT "sink can_handle");
- return TRUE;
+ return n_haptic_can_handle (iface, request);
}
static int
@@ -107,14 +105,6 @@
DroidVibratorData *data = (DroidVibratorData*) n_request_get_data (request, AV_KEY);
g_assert (data != NULL);
- // (thanks kjokinie) TODO: During call you want to block any vibration
- // effects (doesn't feel nice against ear)
-
- // (thanks kjokinie) TODO: respect profile settings to not play when
- // vibration is off. (there is also a special case for touch screen effects,
- // which have special bit set in ffmemless effects configuration files, and
- // follow "profile.current.touchscreen.vibration.level" profile setting)
-
vibrator_on(duration_ms);
// underlying Droid API cannot tell when playback finishes, so we always
|