nCine 2026.08.r1-e9a2342
A cross-platform 2D game engine
Loading...
Searching...
No Matches
ncine::MouseState Class Referenceabstract

Information about the mouse state. More...

#include <InputEvents.h>

Public Member Functions

virtual bool isButtonDown (MouseButton button) const =0
 Returns true if the specified button is down this frame.
 
bool isButtonPressed (MouseButton button) const
 Returns true if the specified button went from not down to down this frame.
 
bool isButtonReleased (MouseButton button) const
 Returns true if the specified button went from down to not down this frame.
 

Public Attributes

int x
 Pointer position on the X axis.
 
int y
 Pointer position on the Y axis.
 

Protected Member Functions

void resetJustPressedReleased ()
 

Protected Attributes

bool buttonJustPressed_ [NumButtons]
 
bool buttonJustReleased_ [NumButtons]
 

Static Protected Attributes

static const unsigned int NumButtons = 5
 

Detailed Description

Information about the mouse state.


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