JNGL
Easy to use cross-platform 2D game library
|
Public Member Functions | |
Vec2 | pos () const |
std::optional< Down > | pressed (Vec2 objectPos) |
calling this will result in all future calls of MouseInfo::pos returning nullopt | |
Over (MouseInfo &) | |
Definition at line 36 of file MouseInfo.hpp.
std::optional< Down > pressed | ( | Vec2 | objectPos | ) |
calling this will result in all future calls of MouseInfo::pos returning nullopt
objectPos will be used to calculate newPos