void hapticFeedback(HapticFeedback type=HapticFeedback::Medium)
Triggers haptic feedback (a short vibration)
HapticFeedback
Type of haptic feedback to trigger via jngl::hapticFeedback.
@ Long
A long (~300 ms) vibration that starts strong and fades out, e.g. for an error or game over.
@ Medium
Medium feedback, e.g. for button presses.
@ Light
Short, light feedback suitable for ingame interactions.
@ Heavy
Strong feedback, e.g. for a long press or an important event.