Skip to content

Commit d889b16

Browse files
author
thyttan
committed
Merge branch 'spotrem' into app-loader
2 parents 6174456 + 915546d commit d889b16

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

apps/spotrem/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Swipe input:
88

99
Swipe left/right to go to previous/next track. Swipe up/down to change the volume.
1010

11-
If you have changed the volume by swipe up/down, you can use a "volume knob" to continuously change the volume. Clock wise circle gesture on the screen increases volume and vice versa. The knob will deactivate shortly after you release the finger from the watch screen.
11+
If you have changed the volume by swipe up/down, you can use a "volume knob" to continuously change the volume. Clock wise circle gesture on the screen increases volume and vice versa. The knob will deactivate shortly after you release the finger from the watch screen, indicated by a double buzz.
1212

1313
It's possible to start tracks by searching with the remote. Search term without tags will override search with tags.
1414

apps/spotrem/app.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ let knobTimeout;
104104
let dragHandler = function(e) {
105105

106106
let cb = ud => {
107-
if (ud) Bangle.musicControl(ud<0 ? "volumedown" : "volumeup");
107+
Bangle.musicControl(ud<0 ? "volumedown" : "volumeup");
108+
Bangle.buzz(20);
108109
}
109110

110111
let resetOuterScopeVariables = ()=>{
@@ -121,7 +122,6 @@ let dragHandler = function(e) {
121122
if (dy>0) { dy-=32; cb(-1) }
122123
else { dy+=32; cb(1) }
123124
volumeChangedThisGoAround = true;
124-
Bangle.buzz(20);
125125
}
126126

127127
if (volumeChangedThisGoAround && Math.abs(dx)>32) {
@@ -145,6 +145,8 @@ let dragHandler = function(e) {
145145
knobTimeout = setTimeout(()=>{
146146
Bangle.removeListener("drag", timingOutVolumeKnob)
147147
Bangle.removeListener("swipe", swipeMask);
148+
Bangle.buzz(40);
149+
setTimeout(Bangle.buzz, 150, 40, 0.8)
148150
knobTimeout = undefined;
149151
print("removed volume knob")
150152
}, 350);
@@ -211,7 +213,6 @@ let dial = function(cb, options) {
211213
}
212214

213215
function stepHandler(step) {
214-
Bangle.buzz(20, 0.8);
215216
cumulative -= THRESHOLD * step;
216217
cb(step);
217218
}

0 commit comments

Comments
 (0)