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