X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/a96666e43001d9967785dfb7ee7a22aaef6eccaa..aa27d4932844e6aa590afba411b1503217f1602d:/twiddle.c diff --git a/twiddle.c b/twiddle.c index 871bd7f..a681059 100644 --- a/twiddle.c +++ b/twiddle.c @@ -594,6 +594,8 @@ static game_state *make_move(game_state *from, game_ui *ui, int x, int y, game_state *ret; int dir; + button = button & (~MOD_MASK | MOD_NUM_KEYPAD); + if (button == LEFT_BUTTON || button == RIGHT_BUTTON) { /* * Determine the coordinates of the click. We offset by n-1