Passing cards from the stock to the waste pile.

This commit is contained in:
Murilo Soares Pereira
2010-04-20 14:11:16 -03:00
parent ee3daeb30a
commit 87909b5075
6 changed files with 27 additions and 0 deletions

View File

@@ -46,6 +46,13 @@ int main(int argc, const char *argv[]) {
case KEY_RIGHT:
move_cursor(cursor, RIGHT);
break;
case KEY_SPACEBAR:
if (cursor_on_stock(cursor)) {
handle_stock_event();
} else {
/*handle_card_event();*/
}
break;
case 'q':
case 'Q':
end_curses();