added input system

This commit is contained in:
2026-01-17 18:01:48 +01:00
parent 6d90c91209
commit cf5602417b
21 changed files with 120171 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#pragma once
#include "interfaces/IInputManager.hpp"
#include "GLFW/glfw3.h"
namespace TSE
{
class InputGlfw : public IInputManager
{
public:
static void Init();
void Delete() override;
static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, int mods);
static void MouseButtonCallback(GLFWwindow *window, int button, int action, int mods);
static void CursorPosCallback(GLFWwindow *window, double xpos, double ypos);
static void ScrollCallback(GLFWwindow *window, double xoffset, double yoffset);
static void CharCallback(GLFWwindow *window, unsigned int codepoint);
};
} // namespace TSE