| 2395 | } |
| 2396 | |
| 2397 | bool |
| 2398 | OfxEffectInstance::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 | |
| 2426 | bool |
| 2427 | OfxEffectInstance::onOverlayFocusGained(double time, |
nothing calls this directly
no test coverage detected