#ifndef CTRL_MOUSE_H #define CTRL_MOUSE_H #include "math/vector.h" namespace engine::controllers { template class Mouse { public: constexpr Mouse(MouseMotionCallback mouse_motion_cb) : mouse_motion_cb{mouse_motion_cb} {} void mouse_motion_event(Vector2 rel) const & { mouse_motion_cb(rel); } private: MouseMotionCallback mouse_motion_cb; }; } #endif // CTRL_MOUSE_H