From 2c92e07f337e42cf58970443f9de678f85a9b2a4 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 19 Oct 2023 22:50:07 -0700 Subject: The great renaming: switch to "module style" --- src/brussel.engine/Input.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/brussel.engine/Input.hpp (limited to 'src/brussel.engine/Input.hpp') diff --git a/src/brussel.engine/Input.hpp b/src/brussel.engine/Input.hpp new file mode 100644 index 0000000..feb50f0 --- /dev/null +++ b/src/brussel.engine/Input.hpp @@ -0,0 +1,23 @@ +#pragma once + +#define GLFW_INCLUDE_NONE +#include + +#include +#include +#include + +/// Extra data attached to a GLFWkeyboard object +struct GlfwKeyboardAttachment { +}; + +class InputState { +public: + static inline InputState* instance = nullptr; + +public: + GLFWkeyboard* FindKeyboard(std::string_view name); + + GlfwKeyboardAttachment* ConnectKeyboard(GLFWkeyboard* keyboard); + void DisconnectKeyboard(GLFWkeyboard* keyboard); +}; -- cgit v1.2.3-70-g09d2