Elevate Engine 1
Loading...
Searching...
No Matches
GlfwInput.cpp
Go to the documentation of this file.
1#include "GlfwInput.h"
3
4#include <GLFW/glfw3.h>
5
7{
8 auto window = static_cast<GLFWwindow*>(Application::Get().GetWindow().GetNativeWindow());
9 double xpos, ypos;
10 glfwGetCursorPos(window, &xpos, &ypos);
11
12 return { (float)xpos, (float)ypos };
13}
static Application & Get()
Definition Application.h:62
virtual glm::vec2 GetMousePositionImpl() override
Definition GlfwInput.cpp:6
virtual void * GetNativeWindow() const =0