MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ apply_wheel_scroll()

MAYAFLUX_API void MayaFlux::Kinesis::apply_wheel_scroll ( ScrollState &  state,
double  dx,
double  dy,
float  speed = 0.08F 
)
noexcept

Apply a wheel-tick delta, scaled by speed, and clamp.

Sign matches whatever convention Context::on_scroll's dx/dy already deliver on this platform; not independently verified interactively, so flip the sign here first if a wheel test scrolls backward.

Parameters
stateScroll state (offset mutated).
dx,dyWheel delta, as delivered by Context::ScrollFn.
speedContent-space units per wheel tick.

Definition at line 32 of file ScrollState.cpp.

33{
34 apply_scroll(state, glm::vec2(static_cast<float>(dx), static_cast<float>(dy)) * speed);
35}
void apply_scroll(NavigationState &st, float ticks)
Dolly eye along the current forward vector.

References apply_scroll(), and speed().

+ Here is the call graph for this function: