49 Vec2 startPos()
const;
51 Down(MouseInfo::Impl&,
Vec2 objectPos);
54 Down& operator=(const
Down&) = delete;
72 explicit Over(MouseInfo::Impl&);
75 MouseInfo::Impl& parent;
82 friend class jngl::Window;
86 void setMousePos(
Vec2);
Contains jngl::Vec2 class.
std::span< Over > cursors()
Only returns mouse cursors that are currently not over something.
void transform(const jngl::Mat3 &transformationMatrix)
Applies the transformationMatrix on the mouse position.
MouseInfo & input()
Returns a reference to the global MouseInfo instance, similar to jngl::modelview()
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::cursors not returning this cursor