Chess: Use button rising edge for Menu

master
Erik Andresen 2025-05-25 11:21:38 +02:00
parent e9527899a6
commit 9146fcfe1e
3 changed files with 3 additions and 2 deletions

View File

@ -3,3 +3,4 @@
0.03: Use Bangle.setBacklight() 0.03: Use Bangle.setBacklight()
0.04: Add option to buzz after computer move 0.04: Add option to buzz after computer move
0.05: Minor code improvements 0.05: Minor code improvements
0.06: Use button rising edge for Menu

View File

@ -306,4 +306,4 @@ setWatch(() => {
} }
}, },
}); });
}, BTN, { repeat: true, edge: "falling" }); }, BTN, { repeat: true, edge: "rising" });

View File

@ -2,7 +2,7 @@
"id": "chess", "id": "chess",
"name": "Chess", "name": "Chess",
"shortName": "Chess", "shortName": "Chess",
"version": "0.05", "version": "0.06",
"description": "Chess game based on the [p4wn engine](https://p4wn.sourceforge.net/). Drag on the touchscreen to move the green cursor onto a piece, select it with a single touch and drag the now red cursor around. Release the piece with another touch to finish the move. The button opens a menu.", "description": "Chess game based on the [p4wn engine](https://p4wn.sourceforge.net/). Drag on the touchscreen to move the green cursor onto a piece, select it with a single touch and drag the now red cursor around. Release the piece with another touch to finish the move. The button opens a menu.",
"icon": "app.png", "icon": "app.png",
"tags": "game", "tags": "game",