Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
Loading...
Searching...
No Matches
InputEventMouseMotion Class Reference

#include <input.hpp>

Inheritance diagram for InputEventMouseMotion:
InputEventMouse InputEventWithModifiers InputEvent

Public Member Functions

bool operator== (const InputEvent &other) const
 
bool operator<= (const InputEvent &other) const
 
- Public Member Functions inherited from InputEventWithModifiers
std::vector< bool > getModifiersMask () const
 
bool isCommandOrControlPressed () const
 
- Public Member Functions inherited from InputEvent
virtual ~InputEvent ()=default
 
bool isActionPressed (const std::string &action) const
 
bool isActionReleased (const std::string &action) const
 
bool isAction (const std::string &action) const
 
virtual bool isPressed () const
 
virtual bool isReleased () const
 
virtual float getStrength () const
 

Public Attributes

Vector2 relative = {0, 0}
 
Vector2 position = {0, 0}
 
- Public Attributes inherited from InputEventMouse
Vector2 position = {0, 0}
 
Vector2 relative = {0, 0}
 
- Public Attributes inherited from InputEventWithModifiers
bool altPressed = false
 
bool commandOrControlAutoremap = false
 
bool ctrlPressed = false
 
bool metaPressed = false
 
bool shiftPressed = false
 

Member Function Documentation

◆ operator<=()

bool InputEventMouseMotion::operator<= ( const InputEvent other) const
virtual

Reimplemented from InputEvent.

◆ operator==()

bool InputEventMouseMotion::operator== ( const InputEvent other) const
virtual

Reimplemented from InputEvent.

Member Data Documentation

◆ position

Vector2 InputEventMouseMotion::position = {0, 0}

◆ relative

Vector2 InputEventMouseMotion::relative = {0, 0}

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