added input system
This commit is contained in:
21
TSE_GlfwImpl/src/InputGlfw.hpp
Normal file
21
TSE_GlfwImpl/src/InputGlfw.hpp
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user