Added controller support

This commit is contained in:
Lauchmelder 2022-03-01 18:13:47 +01:00
parent e5cc1565fd
commit f4e6198a99
No known key found for this signature in database
GPG key ID: C2403C69D78F011D
15 changed files with 310 additions and 6 deletions

View file

@ -5,6 +5,8 @@
#include <imgui/backends/imgui_impl_opengl3.h>
#include <imgui/imgui.h>
#include "Input.hpp"
Window::Window(uint16_t width, uint16_t height, const std::string& title) :
handle(nullptr)
{
@ -17,6 +19,7 @@ Window::Window(uint16_t width, uint16_t height, const std::string& title) :
}
glfwMakeContextCurrent(handle);
Input::SetWindow(this);
}
Window::~Window()