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

#include <cstdint>
#include "Math/Vector.hpp"
#include "Window.hpp"

namespace MC {

class Mouse {
public:
    Mouse() = default;

    Vector<2> update(Window &window);
private:
    bool m_first_event = true;
    float m_last_x, m_last_y = 0.0f;
};

}