From 6b3fb653f8b342d8ecfc093a000e9f6fa479c644 Mon Sep 17 00:00:00 2001 From: Christian Krinitsin Date: Wed, 19 Mar 2025 19:54:25 +0100 Subject: add input header and rough structure --- firmware/include/inputs/input.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 firmware/include/inputs/input.h (limited to 'firmware/include/inputs/input.h') diff --git a/firmware/include/inputs/input.h b/firmware/include/inputs/input.h new file mode 100644 index 0000000..7899ce7 --- /dev/null +++ b/firmware/include/inputs/input.h @@ -0,0 +1,23 @@ +#pragma once + +#include "inputs/button.h" + +namespace inputs { + +class Input { +public: + Input(/* pins */); + + void init(); + + bool down_pressed(); + bool up_pressed(); + bool right_pressed(); + bool left_pressed(); + bool a_pressed(); + bool b_pressed(); + +private: +}; + +} -- cgit v1.2.3