Added touch to open launcher

pull/454/head
Ephraim Amiel Yusi 2020-05-27 14:44:45 +10:00 committed by GitHub
parent 3d0eac8162
commit ec683cecad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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();
});