Merge remote-tracking branch 'Eknous-P/haptic-two'
This commit is contained in:
commit
c8661648c5
4 changed files with 35 additions and 11 deletions
|
|
@ -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(""),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue