diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/hardware_legacy/vibrator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hardware_legacy/vibrator.h b/include/hardware_legacy/vibrator.h index 15fd942..7994f62 100644 --- a/include/hardware_legacy/vibrator.h +++ b/include/hardware_legacy/vibrator.h @@ -22,6 +22,13 @@ extern "C" { #endif /** + * Return whether the device has a vibrator. + * + * @return 1 if a vibrator exists, 0 if it doesn't. + */ +int vibrator_exists(); + +/** * Turn on vibrator * * @param timeout_ms number of milliseconds to vibrate |
