Solitaire: Don't allow the player to draw cards while mouse is down

This commit is contained in:
thisSyntaxSucksAndYouKnowIt 2021-08-06 20:31:12 +02:00 committed by Gunnar Beutner
parent 81784afbe1
commit f583cddaf7
Notes: sideshowbarker 2024-07-18 07:18:35 +09:00

View File

@ -226,7 +226,7 @@ void Game::keydown_event(GUI::KeyEvent& event)
start_game_over_animation();
} else if (event.key() == KeyCode::Key_Tab) {
auto_move_eligible_cards_to_foundations();
} else if (event.key() == KeyCode::Key_Space) {
} else if (event.key() == KeyCode::Key_Space && m_mouse_down != true) {
draw_cards();
} else if (event.shift() && event.key() == KeyCode::Key_F11) {
dump_layout();