summaryrefslogtreecommitdiffstats
path: root/minuitwrp
diff options
context:
space:
mode:
Diffstat (limited to 'minuitwrp')
-rwxr-xr-x[-rw-r--r--]minuitwrp/events.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/minuitwrp/events.cpp b/minuitwrp/events.cpp
index bd29f718d..9374ef174 100644..100755
--- a/minuitwrp/events.cpp
+++ b/minuitwrp/events.cpp
@@ -123,6 +123,7 @@ int write_to_file(const std::string& fn, const std::string& line) {
return -1;
}
+#ifndef TW_NO_HAPTICS
int vibrate(int timeout_ms)
{
if (timeout_ms > 10000) timeout_ms = 1000;
@@ -135,6 +136,7 @@ int vibrate(int timeout_ms)
return 0;
}
+#endif
/* Returns empty tokens */
static char *vk_strtok_r(char *str, const char *delim, char **save_str)
@@ -722,7 +724,9 @@ static int vk_modify(struct ev *e, struct input_event *ev)
last_virt_key = e->vks[i].scancode;
+#ifndef TW_NO_HAPTICS
vibrate(VIBRATOR_TIME_MS);
+#endif
// Mark that all further movement until lift is discard,
// and make sure we don't come back into this area