diff options
author | Johnny Richard <johnnyricha@gmail.com> | 2021-04-13 02:23:22 +0200 |
---|---|---|
committer | Johnny Richard <johnnyricha@gmail.com> | 2021-04-13 02:28:33 +0200 |
commit | 43c0fb1fba4b467fad4260b87cd8149692d44910 (patch) | |
tree | c6bcd8df266a02aa5276aef7cfc2257a27286231 /src/controller.h | |
parent | bde2f21d97460bb90a71acc0fc6e0d4dfa070fc4 (diff) |
Add controller to its own header file
Diffstat (limited to 'src/controller.h')
-rw-r--r-- | src/controller.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/controller.h b/src/controller.h new file mode 100644 index 0000000..bf22335 --- /dev/null +++ b/src/controller.h @@ -0,0 +1,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 */ |