Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::MouseInputEvent Struct Reference

Checked zero-based cell coordinates; no viewport clipping is performed. More...

#include <input.hpp>

Public Member Functions

bool operator== (const MouseInputEvent &other) const =default
 Compare the complete event value.

Public Attributes

std::int32_t column {}
 Zero-based column.
std::int32_t row {}
 Zero-based row.
MouseButton button {}
 Button or wheel direction.
MouseAction action {}
 Observed action.
InputModifiers modifiers {}
 Observed modifiers.
std::optional< InputPointerPrecision > precision {}
 Optional owning 1016 sample; cell fields remain available.
double wheelDelta {1.0}
 Positive finite magnitude in normalized wheel detents for SCROLL; unused otherwise.

Detailed Description

Checked zero-based cell coordinates; no viewport clipping is performed.

Member Function Documentation

◆ operator==()

bool portals::MouseInputEvent::operator== ( const MouseInputEvent & other) const
default

Compare the complete event value.

Parameters
otherEvent or metadata value to compare, without interpreting its payload.
Returns
True when every stored field is equal; false otherwise.

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