#include "EditorAccessories.hpp" #include "Input.hpp" #define GLFW_INCLUDE_NONE #include #include void EditorKeyboardViewer::Show(bool* open) { ImGui::Begin("Keyboards", open); int count; GLFWkeyboard** keyboards = glfwGetKeyboards(&count); for (int i = 0; i < count; ++i) { GLFWkeyboard* keyboard = keyboards[i]; auto attachment = static_cast(glfwGetKeyboardUserPointer(keyboard)); ImGui::BulletText("%s", glfwGetKeyboardName(keyboard)); ImGui::Indent(); ImGui::Unindent(); } ImGui::End(); }