From ec683cecad11a9a9a5817c845e6ba625eff300dc Mon Sep 17 00:00:00 2001 From: Ephraim Amiel Yusi <52617123+eaydev@users.noreply.github.com> Date: Wed, 27 May 2020 14:44:45 +1000 Subject: [PATCH] Added touch to open launcher --- apps/verticalface/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/verticalface/app.js b/apps/verticalface/app.js index 2708e85a4..7921d4457 100644 --- a/apps/verticalface/app.js +++ b/apps/verticalface/app.js @@ -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(); +});