mirror of https://github.com/espruino/BangleApps
Added touch to open launcher
parent
3d0eac8162
commit
ec683cecad
|
@ -48,3 +48,6 @@ Bangle.loadWidgets();
|
|||
Bangle.drawWidgets();
|
||||
// Show launcher when middle button pressed
|
||||
setWatch(Bangle.showLauncher, BTN2, { repeat: false, edge: "falling" });
|
||||
Bangle.on('touch', function(button) {
|
||||
if(button == 1 || button == 2) Bangle.showLauncher();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue