nCine  2025.04.r498-9d36345
A cross-platform 2D game engine
Public Member Functions | Public Attributes | Static Protected Attributes | List of all members
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.
 
virtual bool isButtonPressed (MouseButton button) const =0
 Returns true if the specified button went from not down to down this frame.
 
virtual bool isButtonReleased (MouseButton button) const =0
 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.
 

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: