JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
haptics.hpp File Reference

Functions to control haptic feedback (vibration) More...

#include <cstdint>
Include dependency graph for haptics.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  jngl
 JNGL's main namespace.
 

Enumerations

enum class  HapticFeedback : uint8_t { Light , Medium , Heavy , Long }
 Type of haptic feedback to trigger via jngl::hapticFeedback. More...
 

Functions

void hapticFeedback (HapticFeedback type=HapticFeedback::Medium)
 Triggers haptic feedback (a short vibration)
 

Detailed Description

Functions to control haptic feedback (vibration)

Definition in file haptics.hpp.