MCPcopy Create free account
hub / github.com/MrKepzie/Natron / onOverlayKeyRepeat

Method onOverlayKeyRepeat

Engine/OfxEffectInstance.cpp:2397–2424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2395}
2396
2397bool
2398OfxEffectInstance::onOverlayKeyRepeat(double time,
2399 const RenderScale & renderScale,
2400 ViewIdx view,
2401 Key key,
2402 KeyboardModifiers /*modifiers*/)
2403{
2404 if (!_imp->initialized) {
2405 return false;
2406 }
2407 if (_imp->overlayInteract) {
2408 QByteArray keyStr;
2409
2410 SET_CAN_SET_VALUE(true);
2411 OfxStatus stat = _imp->overlayInteract->keyRepeatAction( time, renderScale, view, _imp->overlayInteract->hasColorPicker() ? &_imp->overlayInteract->getLastColorPickerColor() : /*colourPicker=*/0, (int)key, keyStr.data() );
2412
2413 if ( (getRecursionLevel() == 1) && checkIfOverlayRedrawNeeded() ) {
2414 stat = _imp->overlayInteract->redraw();
2415 assert(stat == kOfxStatOK || stat == kOfxStatReplyDefault);
2416 }
2417
2418 if (stat == kOfxStatOK) {
2419 return true;
2420 }
2421 }
2422
2423 return false;
2424}
2425
2426bool
2427OfxEffectInstance::onOverlayFocusGained(double time,

Callers

nothing calls this directly

Calls 3

keyRepeatActionMethod · 0.80
dataMethod · 0.45
redrawMethod · 0.45

Tested by

no test coverage detected