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

Method onOverlayKeyUp

Engine/OfxEffectInstance.cpp:2367–2395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2365}
2366
2367bool
2368OfxEffectInstance::onOverlayKeyUp(double time,
2369 const RenderScale & renderScale,
2370 ViewIdx view,
2371 Key key,
2372 KeyboardModifiers /* modifiers*/)
2373{
2374 if (!_imp->initialized) {
2375 return false;
2376 }
2377 if (_imp->overlayInteract) {
2378 QByteArray keyStr;
2379 SET_CAN_SET_VALUE(true);
2380 OfxStatus stat = _imp->overlayInteract->keyUpAction( time, renderScale, view, _imp->overlayInteract->hasColorPicker() ? &_imp->overlayInteract->getLastColorPickerColor() : /*colourPicker=*/0, (int)key, keyStr.data() );
2381
2382 if ( (getRecursionLevel() == 1) && checkIfOverlayRedrawNeeded() ) {
2383 stat = _imp->overlayInteract->redraw();
2384 assert(stat == kOfxStatOK || stat == kOfxStatReplyDefault);
2385 }
2386
2387 //assert(stat == kOfxStatOK || stat == kOfxStatReplyDefault);
2388 if (stat == kOfxStatOK) {
2389 return true;
2390 }
2391 ;
2392 }
2393
2394 return false;
2395}
2396
2397bool
2398OfxEffectInstance::onOverlayKeyRepeat(double time,

Callers

nothing calls this directly

Calls 3

keyUpActionMethod · 0.80
dataMethod · 0.45
redrawMethod · 0.45

Tested by

no test coverage detected