| 2365 | } |
| 2366 | |
| 2367 | bool |
| 2368 | OfxEffectInstance::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 | |
| 2397 | bool |
| 2398 | OfxEffectInstance::onOverlayKeyRepeat(double time, |
nothing calls this directly
no test coverage detected