aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/haptic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/haptic.cpp b/src/haptic.cpp
index 637c6f5..90c75f7 100644
--- a/src/haptic.cpp
+++ b/src/haptic.cpp
@@ -45,6 +45,9 @@ public:
}
else
{
+ /* We only support one vibrate mode for now: an on/off pulse at
+ one-second intervals. So, set a timer to go off every 2 seconds
+ that vibrates for one second. */
ua_sensors_haptic_enable(m_sensor);
m_tag = g_timeout_add_seconds (2, on_timeout, this);
on_timeout (this);