Add haptic feedback
Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
diff --git a/minuitwrp/events.c b/minuitwrp/events.c
index 73369a2..aecaf8f 100644
--- a/minuitwrp/events.c
+++ b/minuitwrp/events.c
@@ -106,6 +106,8 @@
int fd;
int ret;
+ if (timeout_ms > 10000) timeout_ms = 1000;
+
fd = open(VIBRATOR_TIMEOUT_FILE, O_WRONLY);
if (fd < 0)
return -1;
diff --git a/minuitwrp/minui.h b/minuitwrp/minui.h
index 03e15bb..5f02d4a 100644
--- a/minuitwrp/minui.h
+++ b/minuitwrp/minui.h
@@ -70,4 +70,6 @@
void ev_dispatch(void);
int ev_get_input(int fd, short revents, struct input_event *ev);
+int vibrate(int timeout_ms);
+
#endif