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" --- source/30-game/Input.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 source/30-game/Input.cpp (limited to 'source/30-game/Input.cpp') diff --git a/source/30-game/Input.cpp b/source/30-game/Input.cpp deleted file mode 100644 index 9f304ff..0000000 --- a/source/30-game/Input.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "Input.hpp" - -#include - -GLFWkeyboard* InputState::FindKeyboard(std::string_view name) { - assert(false); - // TODO -} - -GlfwKeyboardAttachment* InputState::ConnectKeyboard(GLFWkeyboard* keyboard) { - auto attachment = new GlfwKeyboardAttachment(); - glfwSetKeyboardUserPointer(keyboard, attachment); - - return attachment; -} - -void InputState::DisconnectKeyboard(GLFWkeyboard* keyboard) { - InputState::instance->DisconnectKeyboard(keyboard); - auto attachment = static_cast(glfwGetKeyboardUserPointer(keyboard)); - // Defensive: this GLFWkeyboard* will be deleted after this callback ends anyways - glfwSetKeyboardUserPointer(keyboard, nullptr); - delete attachment; -} -- cgit v1.2.3-70-g09d2