Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::View::SimulatedPointer Struct Reference

Device identity of a synthesized pointer gesture. More...

#include <view.hpp>

Public Attributes

PointerType type = PointerType::mouse
float pressure = 0.5f
std::uint16_t modifiers = 0
MouseButton button = MouseButton::left
int pointer_id = 0

Detailed Description

Device identity of a synthesized pointer gesture.

Every default reproduces the historical synthetic mouse, so the simulate_* overloads that omit it are unchanged. pointer_id is what makes multi-touch reachable: the gesture arbiter keys its sessions on it and the pinch / rotate recognizers key their touch maps on it, so a second finger that reuses id 0 overwrites the first instead of pairing with it.

Member Data Documentation

◆ button

MouseButton pulp::view::View::SimulatedPointer::button = MouseButton::left

◆ modifiers

std::uint16_t pulp::view::View::SimulatedPointer::modifiers = 0

◆ pointer_id

int pulp::view::View::SimulatedPointer::pointer_id = 0

◆ pressure

float pulp::view::View::SimulatedPointer::pressure = 0.5f

◆ type

PointerType pulp::view::View::SimulatedPointer::type = PointerType::mouse

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/view/include/pulp/view/view.hpp