simon-git: puzzles (main): Ben Harris
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Wed Nov 9 21:26:17 GMT 2022
TL;DR:
4a37f7c Add a way for midend_process_key() to report whether it handled a keypress
c5a2446 js: Cancel UI events when the mid end says they've been handled
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Ben Harris <bjh21 at bjh21.me.uk>
Date: 2022-11-09 21:26:17
commit 4a37f7cf782592b670d0180a38eb1fd680288421
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=4a37f7cf782592b670d0180a38eb1fd680288421;hp=4fdcc5497503658324fda2e0073d830276b24b60
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Sat Nov 5 16:05:39 2022 +0000
Add a way for midend_process_key() to report whether it handled a keypress
This adds a new bool * argument, which can be NULL if front ends don't
care whether the keypress was handled. Currently they all do that.
Currently, "undo" and "redo" keys are treated as not handled if there's
no move to undo or redo. This may be a little too strict.
devel.but | 8 +++++++-
emcc.c | 14 +++++++-------
gtk.c | 10 +++++-----
midend.c | 19 ++++++++++++++-----
nestedvm.c | 10 +++++-----
osx.m | 4 ++--
puzzles.h | 2 +-
windows.c | 18 +++++++++---------
8 files changed, 50 insertions(+), 35 deletions(-)
commit c5a2446fae603a480de58b912fa349549bd9f247
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=c5a2446fae603a480de58b912fa349549bd9f247;hp=4a37f7cf782592b670d0180a38eb1fd680288421
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Sat Nov 5 17:15:52 2022 +0000
js: Cancel UI events when the mid end says they've been handled
This means that if a key doesn't do anything in a puzzle, it can operate
the browser instead.
emcc.c | 26 ++++++++++++++++++--------
emccpre.js | 15 +++++++++------
2 files changed, 27 insertions(+), 14 deletions(-)
More information about the tartarus-commits
mailing list