JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
MouseInfo::Down Struct Reference

Public Member Functions

Vec2 newPos () const
 returns nullopt when the mouse has been released
 
bool released ()
 
Vec2 startPos () const
 
bool pressedAgain () const
 if you keep this object alive after released() returned true, this will return true again if the mouse is pressed again
 
void blockPressedImmediately ()
 Calling this will cause pressedAgain() to return false directly, not waiting for the next frame or anything:
 
 Down (MouseInfo::Impl &, Vec2 objectPos)
 
 Down (const Down &)=delete
 
 Down (Down &&) noexcept
 
Down & operator= (const Down &)=delete
 
Down & operator= (Down &&) noexcept
 

Detailed Description

Definition at line 44 of file MouseInfo.hpp.


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