[five-or-more/gsoc-vala-port: 27/29] Remember last move for keyboard moves
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/gsoc-vala-port: 27/29] Remember last move for keyboard moves
- Date: Mon, 13 Aug 2018 05:51:28 +0000 (UTC)
commit e1023dfe869565af6536eaa69f09db2d9464ee27
Author: Ruxandra Simion <ruxandra simion93 gmail com>
Date: Mon Aug 6 22:10:42 2018 +0300
Remember last move for keyboard moves
src-vala/view.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src-vala/view.vala b/src-vala/view.vala
index b39a270..c723994 100644
--- a/src-vala/view.vala
+++ b/src-vala/view.vala
@@ -217,6 +217,10 @@ public class View : Gtk.DrawingArea
if (game.status_message != StatusMessage.NONE)
game.status_message = StatusMessage.NONE;
+
+ keyboard_cursor_x = cell_x;
+ keyboard_cursor_y = cell_y;
+
/* if selected cell is not empty, set start */
if (game.board.get_piece (cell_y, cell_x) != null)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]