]> git.cworth.org Git - dvonn/blobdiff - dvonn.c
Implement right-click for pass
[dvonn] / dvonn.c
diff --git a/dvonn.c b/dvonn.c
index 8ac72b1cdd40f4efdd97de2d968a0c40812783bd..94146ce00c19df6418791f4910b14ece75e3512a 100644 (file)
--- a/dvonn.c
+++ b/dvonn.c
@@ -161,6 +161,13 @@ on_button_press_event (GtkWidget   *widget,
     if (event->type >= GDK_2BUTTON_PRESS)
        return TRUE;
 
+    /* Right-click means pass, (yes, it would be better to add some
+     * actual UI elements... */
+    if (event->button == 3) {
+       dvonn_board_pass (&game->board);
+       return TRUE;
+    }
+
     x = event->x;
     y = event->y;
     layout_device_to_board (layout, &x, &y);