15 void setMousePos(
Vec2);
22 Vec2 startPos()
const;
27 Down& operator=(const
Down&) = delete;
Contains jngl::Vec2 class.
std::optional< Over > pos()
will return nullopt if the mouse is already over another object
Vec2 newPos() const
returns nullopt when the mouse has been released
std::optional< Down > pressed(Vec2 objectPos)
calling this will result in all future calls of MouseInfo::pos returning nullopt