diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-29 10:08:22 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-12-29 10:08:22 +0100 |
| commit | 3efabf1c331bef94d27e2818ab734a02dc401dfe (patch) | |
| tree | 78f5e01f697934387f2c85cdc804a73ac08d2ef3 /src/game_tab/right_panel/editor/EditorCanvas.cpp | |
| parent | 7187e6d6ee8d2cec38cd9580e315a00d0c763e99 (diff) | |
Implement pieces move animations
Diffstat (limited to 'src/game_tab/right_panel/editor/EditorCanvas.cpp')
| -rw-r--r-- | src/game_tab/right_panel/editor/EditorCanvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game_tab/right_panel/editor/EditorCanvas.cpp b/src/game_tab/right_panel/editor/EditorCanvas.cpp index 870dd26..07a2f56 100644 --- a/src/game_tab/right_panel/editor/EditorCanvas.cpp +++ b/src/game_tab/right_panel/editor/EditorCanvas.cpp @@ -173,7 +173,7 @@ void EditorCanvas::SetMoves(HalfMove *moves, HalfMove *current) { } void EditorCanvas::OnKeyEvent(wxKeyEvent &event) { - if (event.GetKeyCode() == WXK_LEFT) { + /*if (event.GetKeyCode() == WXK_LEFT) { wxCommandEvent previousEvent(PREVIOUS_MOVE_EVENT, GetId()); previousEvent.SetEventObject(this); ProcessEvent(previousEvent); @@ -181,7 +181,7 @@ void EditorCanvas::OnKeyEvent(wxKeyEvent &event) { wxCommandEvent nextEvent(NEXT_MOVE_EVENT, GetId()); nextEvent.SetEventObject(this); ProcessEvent(nextEvent); - } + }*/ } wxBEGIN_EVENT_TABLE(EditorCanvas, wxPanel) EVT_PAINT(EditorCanvas::OnPaint) |
