2010-04-13 04:07:00 +00:00
|
|
|
#ifndef KEYBOARD_H
|
|
|
|
#define KEYBOARD_H
|
|
|
|
|
2010-04-21 07:14:39 +00:00
|
|
|
#include "deck.h"
|
2010-04-22 04:50:19 +00:00
|
|
|
#include "cursor.h"
|
2010-04-21 07:14:39 +00:00
|
|
|
|
2010-04-13 04:07:00 +00:00
|
|
|
#define KEY_SPACEBAR ' '
|
|
|
|
|
2010-04-21 07:14:39 +00:00
|
|
|
extern struct deck *deck;
|
2011-02-06 02:32:21 +00:00
|
|
|
extern struct cursor *cursor;
|
2010-04-21 07:14:39 +00:00
|
|
|
|
2010-04-22 04:50:19 +00:00
|
|
|
void mark_origin(struct cursor *);
|
|
|
|
struct stack *cursor_stack(struct cursor *);
|
|
|
|
bool cursor_on_stack(struct cursor *, struct stack *);
|
2011-02-06 01:42:14 +00:00
|
|
|
bool cursor_on_invalid_spot(struct cursor *);
|
2010-04-21 07:14:39 +00:00
|
|
|
void handle_stock_event();
|
2010-04-22 04:50:19 +00:00
|
|
|
void handle_card_movement(struct cursor *);
|
2010-04-13 04:07:00 +00:00
|
|
|
int key_event();
|
2011-02-06 02:32:21 +00:00
|
|
|
void handle_keyboard_event();
|
2010-04-13 04:07:00 +00:00
|
|
|
|
|
|
|
#endif
|