Merge remote-tracking branch 'Eknous-P/haptic-two'

This commit is contained in:
tildearrow 2024-04-10 12:28:31 -05:00
commit c8661648c5
4 changed files with 35 additions and 11 deletions

View file

@ -56,7 +56,7 @@
// for now
#define NOTIFY_LONG_HOLD \
if (vibrator && vibratorAvailable) { \
if (SDL_HapticRumblePlay(vibrator,0.5f,20)!=0) { \
if (SDL_HapticRumblePlay(vibrator,settings.vibrationStrength,settings.vibrationLength)!=0) { \
logV("could not vibrate: %s!",SDL_GetError()); \
} \
} else { \
@ -1844,6 +1844,8 @@ class FurnaceGUI {
int frameRateLimit;
int displayRenderTime;
unsigned int maxUndoSteps;
float vibrationStrength;
int vibrationLength;
String mainFontPath;
String headFontPath;
String patFontPath;
@ -2076,6 +2078,8 @@ class FurnaceGUI {
frameRateLimit(60),
displayRenderTime(0),
maxUndoSteps(100),
vibrationStrength(0.5f),
vibrationLength(100),
mainFontPath(""),
headFontPath(""),
patFontPath(""),