couch/core/Input.h

25 lines
498 B
C
Raw Normal View History

2021-01-13 18:51:58 -06:00
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#ifdef LUA_SCRIPTING
extern "C" {
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
#endif // LUA_SCRIPTING
#include "types.h"
class Input {
public:
static Input *GetInstance();
void Use(Window *window);
private:
2021-01-13 22:50:01 -06:00
double lastx, lasty;
2021-01-13 18:51:58 -06:00
Input();
static void HandleKeys(Window *window, int key, int code, int action, int mods);
2021-01-13 22:50:01 -06:00
static void HandleMousePosition(Window *window, double xpos, double ypos);
2021-01-13 18:51:58 -06:00
static Input *instance;
};