summary refs log tree commit diff
path: root/src/GFX/Mouse.hpp
blob: ad940d462fec2fa3c7ebe6bfc6fd1d442975669b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <GLFW/glfw3.h>
#include "../Math/Vector.hpp"

namespace MC::GFX {

class Mouse {
public:
    Mouse() = default;

    Vector<2> update(GLFWwindow* window);
private:
    Bool m_first_event = true;

    Real m_last_x = 0.0f;
    Real m_last_y = 0.0f;
};

}