diff options
author | bigbiff bigbiff <bigbiff@teamw.in> | 2019-03-13 00:28:31 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2019-03-18 04:39:00 +0100 |
commit | 3ed778ad6389c901077fee38bb77abd55dd4eba4 (patch) | |
tree | 57a2a9af729ca594387f71532797fb9d42bcc8cc /minuitwrp | |
parent | fix building TWRP for devices without cache (diff) | |
download | android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar.gz android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar.bz2 android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar.lz android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar.xz android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar.zst android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.zip |
Diffstat (limited to 'minuitwrp')
-rwxr-xr-x[-rw-r--r--] | minuitwrp/events.cpp | 4 |
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 |