JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MouseInfo::Over Struct Reference

Public Member Functions

Vec2 pos () const
 
std::optional< Downpressed (Vec2 objectPos)
 calling this will result in all future calls of MouseInfo::pos returning nullopt
 
 Over (MouseInfo &)
 

Detailed Description

Definition at line 36 of file MouseInfo.hpp.

Member Function Documentation

◆ pressed()

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


The documentation for this struct was generated from the following file: