summaryrefslogtreecommitdiff
path: root/src/controller.h
blob: bf223353607aa76e1797c4ec8eba6fe053eeca86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef CONTROLLER_H
#define CONTROLLER_H

#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct controller_t {
  bool up;
  bool down;
  bool left;
  bool right;
} controller_t;

#ifdef __cplusplus
}
#endif

#endif /* CONTROLLER_H */