One pointer sample as the host received it, before any coalescing. More...
#include <pointer_coalescer.hpp>
Public Member Functions | |
| bool | is_motion () const |
| Motion is mergeable; a button transition is not. | |
Public Attributes | |
| Point | position {} |
| std::vector< Point > | path |
| Raw positions represented by this sample after coalescing, oldest first. | |
| std::uint16_t | modifiers = 0 |
| int | click_count = 0 |
| MousePhase | phase = MousePhase::automatic |
| MouseButton | button = MouseButton::left |
| PointerAttributes | pointer {} |
One pointer sample as the host received it, before any coalescing.
|
inline |
Motion is mergeable; a button transition is not.
automatic is treated as terminal: it carries no promise about what it means, so merging it could silently reorder a press or a release.
| MouseButton pulp::view::PointerSample::button = MouseButton::left |
| int pulp::view::PointerSample::click_count = 0 |
| std::uint16_t pulp::view::PointerSample::modifiers = 0 |
| std::vector<Point> pulp::view::PointerSample::path |
Raw positions represented by this sample after coalescing, oldest first.
Empty on an uncoalesced host sample.
| MousePhase pulp::view::PointerSample::phase = MousePhase::automatic |
| PointerAttributes pulp::view::PointerSample::pointer {} |
| Point pulp::view::PointerSample::position {} |