aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/action.h
blob: d6d9870161c30d816b5a0325d247fa8c4e357cca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef ACTION_H
#define ACTION_H

#include <SDL.h>

typedef enum {
  ACTION_NONE,
  ACTION_QUIT,
  ACTION_MOVE,
  ACTION_WARP,
  ACTION_WARP_BUF_PUSH,
  ACTION_WARP_BUF_POP,
  ACTION_UNDO,
  ACTION_NEXT,
  ACTION_SOLVE,
  ACTION_RESET,
  ACTION_LAST,
} action_type_t;

typedef struct {
  action_type_t type;
  uint64_t data;
} action_t;

action_t get_action(const SDL_Keycode);

#endif /* ACTION_H */