Index: public/platform/Platform.h |
diff --git a/public/platform/Platform.h b/public/platform/Platform.h |
index de31d2a3ee301c215f2d6069ad4edca9b9debdc4..24e302e98c6da2be2de25cd84faeb603b09df805 100644 |
--- a/public/platform/Platform.h |
+++ b/public/platform/Platform.h |
@@ -386,6 +386,16 @@ public: |
virtual void callOnMainThread(void (*func)(void*), void* context) { } |
+ // Vibration ----------------------------------------------------------- |
+ |
+ // Starts a vibration for the given duration in milliseconds. If there is currently an active |
+ // vibration it will be cancelled before the new one is started. |
+ virtual void vibrate(unsigned time) { } |
+ |
+ // Cancels the current vibration, if there is one. |
+ virtual void cancelVibration() { } |
+ |
+ |
// Testing ------------------------------------------------------------- |
#define HAVE_WEBUNITTESTSUPPORT 1 |