mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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.
This commit is contained in:
@ -305,7 +305,7 @@ void midend_reset_tilesize(midend *me);
|
||||
void midend_new_game(midend *me);
|
||||
void midend_restart_game(midend *me);
|
||||
void midend_stop_anim(midend *me);
|
||||
bool midend_process_key(midend *me, int x, int y, int button);
|
||||
bool midend_process_key(midend *me, int x, int y, int button, bool *handled);
|
||||
key_label *midend_request_keys(midend *me, int *nkeys);
|
||||
void midend_force_redraw(midend *me);
|
||||
void midend_redraw(midend *me);
|
||||
|
Reference in New Issue
Block a user