MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / captureScroll

Method captureScroll

src/visualizer/input/input_bindings.cpp:1588–1598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1586 }
1587
1588 void InputBindings::captureScroll(int mods, std::optional<int> chord_key) {
1589 if (!capture_state_.active)
1590 return;
1591 if (!(describe(capture_state_.action).allowed_kinds & TRIGGER_KIND_MOUSE_SCROLL)) {
1592 return;
1593 }
1594 MouseScrollTrigger trigger{mods & MODIFIER_MASK, chord_key};
1595 setBinding(capture_state_.mode, capture_state_.action, trigger);
1596 capture_state_.captured = trigger;
1597 capture_state_.active = false;
1598 }
1599
1600 void InputBindings::updateCapture() {
1601 if (!capture_state_.active || !capture_state_.waiting_for_double_click)

Callers 2

register_keymapFunction · 0.80
handleScrollMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected