383 // |
383 // |
384 // Gets called from the Controls Controller |
384 // Gets called from the Controls Controller |
385 // only if if OK to handle pointer events |
385 // only if if OK to handle pointer events |
386 // ------------------------------------------------------------------------------------------------- |
386 // ------------------------------------------------------------------------------------------------- |
387 // |
387 // |
388 EXPORT_C void CMPXVideoPlaybackContainer::DoHandlePointerEventL( const TPointerEvent& aPointerEvent ) |
388 EXPORT_C |
389 { |
389 void CMPXVideoPlaybackContainer::DoHandlePointerEventL( const TPointerEvent& aPointerEvent ) |
390 MPX_DEBUG(_L("CMPXVideoPlaybackContainer::DoHandlePointerEventL()")); |
390 { |
391 |
391 MPX_ENTER_EXIT(_L("CMPXVideoPlaybackContainer::DoHandlePointerEventL()"), |
392 if ( AknLayoutUtils::PenEnabled() && aPointerEvent.iType == TPointerEvent::EButton1Up ) |
392 _L("aPointerEvent.iType = %d"), aPointerEvent.iType ); |
393 { |
393 |
394 iControlsController->HandleEventL( EMPXControlCmdToggleVisibility ); |
394 if ( AknLayoutUtils::PenEnabled() ) |
|
395 { |
|
396 if ( aPointerEvent.iType == TPointerEvent::EButton1Up ) |
|
397 { |
|
398 iControlsController->HandleEventL( EMPXControlCmdToggleVisibility ); |
|
399 |
|
400 SetPointerCapture( EFalse ); |
|
401 ClaimPointerGrab( EFalse ); |
|
402 } |
|
403 else if ( aPointerEvent.iType == TPointerEvent::EButton1Down ) |
|
404 { |
|
405 SetPointerCapture( ETrue ); |
|
406 ClaimPointerGrab( ETrue ); |
|
407 } |
395 } |
408 } |
396 } |
409 } |
397 |
410 |
398 // ------------------------------------------------------------------------------------------------- |
411 // ------------------------------------------------------------------------------------------------- |
399 // CMPXVideoPlaybackContainer::Draw() |
412 // CMPXVideoPlaybackContainer::Draw() |