From 4f818cd12c9bf2773d44e5cfdc2fc0a344abf7f5 Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Mon, 7 Sep 2020 15:29:55 +0900 Subject: [PATCH] Revert "Revert "Renamed KeyEvent enum values to comply with coding standards."" This reverts commit 7453fcec8f56f9755e405415e18d918689fcbffe. --- builder/dali-builder.cpp | 2 +- examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp | 2 +- .../animated-gradient-call-active/animated-gradient-call-active.cpp | 2 +- .../animated-gradient-card-active/animated-gradient-card-active.cpp | 2 +- examples/animated-images/animated-images-example.cpp | 2 +- examples/animated-shapes/animated-shapes-example.cpp | 2 +- examples/animated-vector-images/animated-vector-images-example.cpp | 2 +- examples/arc-visual/arc-visual-example.cpp | 2 +- examples/benchmark/benchmark.cpp | 2 +- examples/bezier-curve/bezier-curve-example.cpp | 2 +- examples/blocks/blocks-example.cpp | 2 +- examples/bloom-view/bloom-view-example.cpp | 2 +- examples/bubble-effect/bubble-effect-example.cpp | 2 +- examples/builder/examples.cpp | 2 +- examples/buttons/buttons-example.cpp | 2 +- examples/clipping-draw-order/clipping-draw-order.cpp | 2 +- examples/clipping/clipping-example.cpp | 2 +- examples/color-visual/color-visual-example.cpp | 2 +- .../compressed-texture-formats-example.cpp | 2 +- examples/contact-cards/contact-card.cpp | 2 +- examples/contact-cards/contact-cards-example.cpp | 2 +- examples/cube-transition-effect/cube-transition-effect-example.cpp | 2 +- examples/deferred-shading/deferred-shading.cpp | 2 +- examples/dissolve-effect/dissolve-effect-example.cpp | 2 +- examples/drag-and-drop/drag-and-drop-example.cpp | 2 +- examples/effects-view/effects-view-example.cpp | 2 +- examples/flex-container/flex-container-example.cpp | 2 +- examples/focus-integration/focus-integration.cpp | 2 +- examples/fpp-game/fpp-game-example.cpp | 2 +- examples/frame-callback/frame-callback-example.cpp | 2 +- examples/gaussian-blur-view/gaussian-blur-view-example.cpp | 2 +- examples/gestures/gesture-example.cpp | 2 +- examples/gradients/gradients-example.cpp | 2 +- examples/hello-world/hello-world-example.cpp | 2 +- examples/homescreen-benchmark/homescreen-benchmark.cpp | 2 +- examples/image-policies/image-policies-example.cpp | 2 +- .../image-scaling-and-filtering-example.cpp | 2 +- .../image-scaling-irregular-grid-example.cpp | 2 +- .../image-view-alpha-blending/image-view-alpha-blending-example.cpp | 2 +- examples/image-view-pixel-area/image-view-pixel-area-example.cpp | 2 +- examples/image-view-svg/image-view-svg-example.cpp | 2 +- examples/image-view-url/image-view-url-example.cpp | 2 +- examples/image-view/image-view-example.cpp | 2 +- examples/item-view/item-view-example.cpp | 2 +- examples/line-mesh/line-mesh-example.cpp | 2 +- examples/magnifier/magnifier-example.cpp | 2 +- examples/mesh-morph/mesh-morph-example.cpp | 2 +- examples/mesh-visual/mesh-visual-example.cpp | 2 +- examples/metaball-explosion/metaball-explosion-example.cpp | 2 +- examples/metaball-refrac/metaball-refrac-example.cpp | 2 +- examples/model3d-view/model3d-view-example.cpp | 2 +- examples/motion-blur/motion-blur-example.cpp | 2 +- examples/motion-stretch/motion-stretch-example.cpp | 2 +- examples/native-image-source/native-image-source-example.cpp | 2 +- examples/page-turn-view/page-turn-view-example.cpp | 2 +- examples/perf-scroll/perf-scroll.cpp | 2 +- examples/pivot/pivot-example.cpp | 2 +- examples/point-mesh/point-mesh-example.cpp | 2 +- examples/popup/popup-example.cpp | 2 +- examples/pre-render-callback/pre-render-callback-example.cpp | 2 +- examples/primitive-shapes/primitive-shapes-example.cpp | 2 +- examples/progress-bar/progress-bar-example.cpp | 2 +- examples/property-notification/property-notification-example.cpp | 2 +- examples/ray-marching/ray-marching-example.cpp | 2 +- examples/reflection-demo/reflection-example.cpp | 2 +- examples/refraction-effect/refraction-effect-example.cpp | 2 +- examples/remote-image-loading/remote-image-loading-example.cpp | 6 +++--- examples/renderer-stencil/renderer-stencil-example.cpp | 2 +- examples/rendering-basic-light/rendering-basic-light-example.cpp | 2 +- examples/rendering-basic-pbr/rendering-basic-pbr-example.cpp | 2 +- examples/rendering-cube/rendering-cube.cpp | 2 +- examples/rendering-line/rendering-line.cpp | 2 +- examples/rendering-radial-progress/radial-progress.cpp | 2 +- examples/rendering-skybox/rendering-skybox.cpp | 2 +- examples/rendering-textured-cube/rendering-textured-cube.cpp | 2 +- examples/rendering-triangle/rendering-triangle.cpp | 2 +- examples/scroll-view/scroll-view-example.cpp | 2 +- examples/shadows-and-lights/shadows-and-lights-example.cpp | 2 +- .../simple-bitmap-font-text-label/simple-text-label-example.cpp | 2 +- examples/simple-scroll-view/simple-scroll-view-example.cpp | 2 +- examples/simple-text-field/simple-text-field.cpp | 2 +- examples/simple-text-label/simple-text-label-example.cpp | 2 +- examples/simple-text-renderer/simple-text-renderer-example.cpp | 2 +- examples/simple-text-visual/simple-text-visual-example.cpp | 2 +- examples/simple-visuals-control/simple-visuals-application.cpp | 4 ++-- examples/size-negotiation/size-negotiation-example.cpp | 2 +- examples/sparkle/sparkle-effect-example.cpp | 2 +- examples/styling/styling-application.cpp | 4 ++-- examples/super-blur-view/super-blur-view-example.cpp | 2 +- examples/text-editor/text-editor-example.cpp | 2 +- examples/text-field/text-field-example.cpp | 2 +- examples/text-fonts/text-fonts-example.cpp | 2 +- examples/text-label-emojis/text-label-emojis.cpp | 2 +- .../text-label-multi-language/text-label-multi-language-example.cpp | 2 +- examples/text-label/text-label-example.cpp | 2 +- examples/text-memory-profiling/text-memory-profiling-example.cpp | 2 +- examples/text-overlap/text-overlap-example.cpp | 2 +- examples/text-scrolling/text-scrolling-example.cpp | 2 +- examples/textured-mesh/textured-mesh-example.cpp | 2 +- examples/tilt/tilt-example.cpp | 2 +- examples/tooltip/tooltip-example.cpp | 2 +- examples/transitions/transition-application.cpp | 4 ++-- examples/video-view/video-view-example.cpp | 2 +- examples/visual-fitting-mode/visual-fitting-mode-example.cpp | 2 +- examples/visual-transitions/transition-application.cpp | 4 ++-- examples/web-view/web-view-example.cpp | 2 +- shared/dali-table-view.cpp | 2 +- 107 files changed, 113 insertions(+), 113 deletions(-) diff --git a/builder/dali-builder.cpp b/builder/dali-builder.cpp index 2ffdaaa..f264ced 100644 --- a/builder/dali-builder.cpp +++ b/builder/dali-builder.cpp @@ -280,7 +280,7 @@ private: // Process Key events to Quit on back-key void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp b/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp index 8360197..e4efeac 100644 --- a/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp +++ b/examples/alpha-blending-cpu/alpha-blending-cpu-example.cpp @@ -131,7 +131,7 @@ private: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/animated-gradient-call-active/animated-gradient-call-active.cpp b/examples/animated-gradient-call-active/animated-gradient-call-active.cpp index ab8842a..8b1d8ea 100644 --- a/examples/animated-gradient-call-active/animated-gradient-call-active.cpp +++ b/examples/animated-gradient-call-active/animated-gradient-call-active.cpp @@ -163,7 +163,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/animated-gradient-card-active/animated-gradient-card-active.cpp b/examples/animated-gradient-card-active/animated-gradient-card-active.cpp index f5e5b40..696f1a9 100644 --- a/examples/animated-gradient-card-active/animated-gradient-card-active.cpp +++ b/examples/animated-gradient-card-active/animated-gradient-card-active.cpp @@ -425,7 +425,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/animated-images/animated-images-example.cpp b/examples/animated-images/animated-images-example.cpp index 3f0c0b8..1b96ac1 100644 --- a/examples/animated-images/animated-images-example.cpp +++ b/examples/animated-images/animated-images-example.cpp @@ -291,7 +291,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/animated-shapes/animated-shapes-example.cpp b/examples/animated-shapes/animated-shapes-example.cpp index d074ad3..b4633cd 100644 --- a/examples/animated-shapes/animated-shapes-example.cpp +++ b/examples/animated-shapes/animated-shapes-example.cpp @@ -445,7 +445,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if( event.GetState() == KeyEvent::Down && (IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK )) ) + if( event.GetState() == KeyEvent::DOWN && (IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK )) ) { mApplication.Quit(); } diff --git a/examples/animated-vector-images/animated-vector-images-example.cpp b/examples/animated-vector-images/animated-vector-images-example.cpp index b44a162..b7bbd1d 100644 --- a/examples/animated-vector-images/animated-vector-images-example.cpp +++ b/examples/animated-vector-images/animated-vector-images-example.cpp @@ -201,7 +201,7 @@ private: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/arc-visual/arc-visual-example.cpp b/examples/arc-visual/arc-visual-example.cpp index 0e98dc0..708f7d5 100644 --- a/examples/arc-visual/arc-visual-example.cpp +++ b/examples/arc-visual/arc-visual-example.cpp @@ -229,7 +229,7 @@ private: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Up ) + if( event.GetState() == KeyEvent::UP ) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/benchmark/benchmark.cpp b/examples/benchmark/benchmark.cpp index a2b10c8..2b7520b 100644 --- a/examples/benchmark/benchmark.cpp +++ b/examples/benchmark/benchmark.cpp @@ -444,7 +444,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/bezier-curve/bezier-curve-example.cpp b/examples/bezier-curve/bezier-curve-example.cpp index 2772111..d92bab9 100644 --- a/examples/bezier-curve/bezier-curve-example.cpp +++ b/examples/bezier-curve/bezier-curve-example.cpp @@ -573,7 +573,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if( event.GetState() == KeyEvent::Down && (IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK )) ) + if( event.GetState() == KeyEvent::DOWN && (IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK )) ) { mApplication.Quit(); } diff --git a/examples/blocks/blocks-example.cpp b/examples/blocks/blocks-example.cpp index 828a85a..9d48518 100644 --- a/examples/blocks/blocks-example.cpp +++ b/examples/blocks/blocks-example.cpp @@ -826,7 +826,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/bloom-view/bloom-view-example.cpp b/examples/bloom-view/bloom-view-example.cpp index 64ceb02..870c62c 100644 --- a/examples/bloom-view/bloom-view-example.cpp +++ b/examples/bloom-view/bloom-view-example.cpp @@ -130,7 +130,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/bubble-effect/bubble-effect-example.cpp b/examples/bubble-effect/bubble-effect-example.cpp index 0ae5145..1c9590d 100644 --- a/examples/bubble-effect/bubble-effect-example.cpp +++ b/examples/bubble-effect/bubble-effect-example.cpp @@ -270,7 +270,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/builder/examples.cpp b/examples/builder/examples.cpp index 42aef41..b5d5f3b 100644 --- a/examples/builder/examples.cpp +++ b/examples/builder/examples.cpp @@ -532,7 +532,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/buttons/buttons-example.cpp b/examples/buttons/buttons-example.cpp index 97217f3..79649b5 100644 --- a/examples/buttons/buttons-example.cpp +++ b/examples/buttons/buttons-example.cpp @@ -359,7 +359,7 @@ class ButtonsController: public ConnectionTracker void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/clipping-draw-order/clipping-draw-order.cpp b/examples/clipping-draw-order/clipping-draw-order.cpp index a23b9d4..ac20cc1 100644 --- a/examples/clipping-draw-order/clipping-draw-order.cpp +++ b/examples/clipping-draw-order/clipping-draw-order.cpp @@ -216,7 +216,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/clipping/clipping-example.cpp b/examples/clipping/clipping-example.cpp index 2dda716..7157db9 100644 --- a/examples/clipping/clipping-example.cpp +++ b/examples/clipping/clipping-example.cpp @@ -172,7 +172,7 @@ private: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/color-visual/color-visual-example.cpp b/examples/color-visual/color-visual-example.cpp index fee90fd..3ab4880 100644 --- a/examples/color-visual/color-visual-example.cpp +++ b/examples/color-visual/color-visual-example.cpp @@ -117,7 +117,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/compressed-texture-formats/compressed-texture-formats-example.cpp b/examples/compressed-texture-formats/compressed-texture-formats-example.cpp index a0c6079..2eb2b6b 100644 --- a/examples/compressed-texture-formats/compressed-texture-formats-example.cpp +++ b/examples/compressed-texture-formats/compressed-texture-formats-example.cpp @@ -190,7 +190,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/contact-cards/contact-card.cpp b/examples/contact-cards/contact-card.cpp index 9d67eab..4959d80 100644 --- a/examples/contact-cards/contact-card.cpp +++ b/examples/contact-cards/contact-card.cpp @@ -327,7 +327,7 @@ void ContactCard::OnAnimationFinished( Animation& animation ) void ContactCard::OnKeyEvent( const KeyEvent& event ) { if( ( ! mFolded ) && // If we're folded then there's no need to do any more checking - ( event.GetState() == KeyEvent::Down ) ) + ( event.GetState() == KeyEvent::DOWN ) ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/contact-cards/contact-cards-example.cpp b/examples/contact-cards/contact-cards-example.cpp index 087c53a..343edbe 100644 --- a/examples/contact-cards/contact-cards-example.cpp +++ b/examples/contact-cards/contact-cards-example.cpp @@ -98,7 +98,7 @@ private: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { KeyInputFocusManager keyInputFocusManager = KeyInputFocusManager::Get(); if( ! keyInputFocusManager.GetCurrentFocusControl() ) // Don't quit if a control has focus diff --git a/examples/cube-transition-effect/cube-transition-effect-example.cpp b/examples/cube-transition-effect/cube-transition-effect-example.cpp index bd65bb8..7f01c51 100644 --- a/examples/cube-transition-effect/cube-transition-effect-example.cpp +++ b/examples/cube-transition-effect/cube-transition-effect-example.cpp @@ -403,7 +403,7 @@ Texture CubeTransitionApp::LoadWindowFillingTexture( const char* filepath ) void CubeTransitionApp::OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/deferred-shading/deferred-shading.cpp b/examples/deferred-shading/deferred-shading.cpp index b3c9131..7a1920f 100644 --- a/examples/deferred-shading/deferred-shading.cpp +++ b/examples/deferred-shading/deferred-shading.cpp @@ -777,7 +777,7 @@ private: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/dissolve-effect/dissolve-effect-example.cpp b/examples/dissolve-effect/dissolve-effect-example.cpp index 870cfda..9b9fd90 100644 --- a/examples/dissolve-effect/dissolve-effect-example.cpp +++ b/examples/dissolve-effect/dissolve-effect-example.cpp @@ -327,7 +327,7 @@ void DissolveEffectApp::StartTransition(Vector2 position, Vector2 displacement) void DissolveEffectApp::OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/drag-and-drop/drag-and-drop-example.cpp b/examples/drag-and-drop/drag-and-drop-example.cpp index 2444913..22e733f 100644 --- a/examples/drag-and-drop/drag-and-drop-example.cpp +++ b/examples/drag-and-drop/drag-and-drop-example.cpp @@ -118,7 +118,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/effects-view/effects-view-example.cpp b/examples/effects-view/effects-view-example.cpp index dab07ea..c75953a 100644 --- a/examples/effects-view/effects-view-example.cpp +++ b/examples/effects-view/effects-view-example.cpp @@ -234,7 +234,7 @@ bool EffectsViewApp::ChangeEffectSize( Button button ) void EffectsViewApp::OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/flex-container/flex-container-example.cpp b/examples/flex-container/flex-container-example.cpp index 843227c..6eff529 100644 --- a/examples/flex-container/flex-container-example.cpp +++ b/examples/flex-container/flex-container-example.cpp @@ -330,7 +330,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/focus-integration/focus-integration.cpp b/examples/focus-integration/focus-integration.cpp index 82bd570..6f9dad5 100644 --- a/examples/focus-integration/focus-integration.cpp +++ b/examples/focus-integration/focus-integration.cpp @@ -175,7 +175,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/fpp-game/fpp-game-example.cpp b/examples/fpp-game/fpp-game-example.cpp index 03cf099..989a3fa 100644 --- a/examples/fpp-game/fpp-game-example.cpp +++ b/examples/fpp-game/fpp-game-example.cpp @@ -114,7 +114,7 @@ public: // Handle a quit key event void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/frame-callback/frame-callback-example.cpp b/examples/frame-callback/frame-callback-example.cpp index b19ac5de..6ec5cab 100644 --- a/examples/frame-callback/frame-callback-example.cpp +++ b/examples/frame-callback/frame-callback-example.cpp @@ -165,7 +165,7 @@ private: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/gaussian-blur-view/gaussian-blur-view-example.cpp b/examples/gaussian-blur-view/gaussian-blur-view-example.cpp index fd3bf27..bd1c807 100644 --- a/examples/gaussian-blur-view/gaussian-blur-view-example.cpp +++ b/examples/gaussian-blur-view/gaussian-blur-view-example.cpp @@ -142,7 +142,7 @@ private: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/gestures/gesture-example.cpp b/examples/gestures/gesture-example.cpp index 247147b..e2d8e8a 100644 --- a/examples/gestures/gesture-example.cpp +++ b/examples/gestures/gesture-example.cpp @@ -453,7 +453,7 @@ private: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/gradients/gradients-example.cpp b/examples/gradients/gradients-example.cpp index fb0250b..557ebdc 100644 --- a/examples/gradients/gradients-example.cpp +++ b/examples/gradients/gradients-example.cpp @@ -183,7 +183,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/hello-world/hello-world-example.cpp b/examples/hello-world/hello-world-example.cpp index 8fc6997..ebf322e 100644 --- a/examples/hello-world/hello-world-example.cpp +++ b/examples/hello-world/hello-world-example.cpp @@ -63,7 +63,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/homescreen-benchmark/homescreen-benchmark.cpp b/examples/homescreen-benchmark/homescreen-benchmark.cpp index fbcf209..56e601c 100644 --- a/examples/homescreen-benchmark/homescreen-benchmark.cpp +++ b/examples/homescreen-benchmark/homescreen-benchmark.cpp @@ -446,7 +446,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/image-policies/image-policies-example.cpp b/examples/image-policies/image-policies-example.cpp index fd4b732..3014b3d 100644 --- a/examples/image-policies/image-policies-example.cpp +++ b/examples/image-policies/image-policies-example.cpp @@ -525,7 +525,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp b/examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp index 4365ef9..d79a272 100644 --- a/examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp +++ b/examples/image-scaling-and-filtering/image-scaling-and-filtering-example.cpp @@ -566,7 +566,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp b/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp index 47aa49a..203b710 100644 --- a/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp +++ b/examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp @@ -542,7 +542,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) diff --git a/examples/image-view-alpha-blending/image-view-alpha-blending-example.cpp b/examples/image-view-alpha-blending/image-view-alpha-blending-example.cpp index 96e8a34..e1c6a9e 100644 --- a/examples/image-view-alpha-blending/image-view-alpha-blending-example.cpp +++ b/examples/image-view-alpha-blending/image-view-alpha-blending-example.cpp @@ -88,7 +88,7 @@ private: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/image-view-pixel-area/image-view-pixel-area-example.cpp b/examples/image-view-pixel-area/image-view-pixel-area-example.cpp index 528c82d..fdbe0a6 100644 --- a/examples/image-view-pixel-area/image-view-pixel-area-example.cpp +++ b/examples/image-view-pixel-area/image-view-pixel-area-example.cpp @@ -213,7 +213,7 @@ private: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/image-view-svg/image-view-svg-example.cpp b/examples/image-view-svg/image-view-svg-example.cpp index 07a2ca9..bfbe038 100644 --- a/examples/image-view-svg/image-view-svg-example.cpp +++ b/examples/image-view-svg/image-view-svg-example.cpp @@ -209,7 +209,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/image-view-url/image-view-url-example.cpp b/examples/image-view-url/image-view-url-example.cpp index 590a90e..86f639e 100644 --- a/examples/image-view-url/image-view-url-example.cpp +++ b/examples/image-view-url/image-view-url-example.cpp @@ -186,7 +186,7 @@ private: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/image-view/image-view-example.cpp b/examples/image-view/image-view-example.cpp index ebad860..2e19d64 100644 --- a/examples/image-view/image-view-example.cpp +++ b/examples/image-view/image-view-example.cpp @@ -260,7 +260,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/item-view/item-view-example.cpp b/examples/item-view/item-view-example.cpp index f7e3eba..e4aee2b 100644 --- a/examples/item-view/item-view-example.cpp +++ b/examples/item-view/item-view-example.cpp @@ -963,7 +963,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/line-mesh/line-mesh-example.cpp b/examples/line-mesh/line-mesh-example.cpp index d90ea95..3d1d2db 100644 --- a/examples/line-mesh/line-mesh-example.cpp +++ b/examples/line-mesh/line-mesh-example.cpp @@ -310,7 +310,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/magnifier/magnifier-example.cpp b/examples/magnifier/magnifier-example.cpp index ab87c6b..b44c963 100644 --- a/examples/magnifier/magnifier-example.cpp +++ b/examples/magnifier/magnifier-example.cpp @@ -376,7 +376,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/mesh-morph/mesh-morph-example.cpp b/examples/mesh-morph/mesh-morph-example.cpp index 3b53a74..3a50a0f 100644 --- a/examples/mesh-morph/mesh-morph-example.cpp +++ b/examples/mesh-morph/mesh-morph-example.cpp @@ -326,7 +326,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/mesh-visual/mesh-visual-example.cpp b/examples/mesh-visual/mesh-visual-example.cpp index a2bf17f..17b9c1d 100644 --- a/examples/mesh-visual/mesh-visual-example.cpp +++ b/examples/mesh-visual/mesh-visual-example.cpp @@ -572,7 +572,7 @@ public: //If escape or the back button is pressed, quit the application (and return to the launcher) void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/metaball-explosion/metaball-explosion-example.cpp b/examples/metaball-explosion/metaball-explosion-example.cpp index 6e48c1d..22b150f 100644 --- a/examples/metaball-explosion/metaball-explosion-example.cpp +++ b/examples/metaball-explosion/metaball-explosion-example.cpp @@ -667,7 +667,7 @@ bool MetaballExplosionController::OnTouch( Actor actor, const TouchEvent& touch void MetaballExplosionController::OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/metaball-refrac/metaball-refrac-example.cpp b/examples/metaball-refrac/metaball-refrac-example.cpp index 1d060d2..96134b4 100644 --- a/examples/metaball-refrac/metaball-refrac-example.cpp +++ b/examples/metaball-refrac/metaball-refrac-example.cpp @@ -759,7 +759,7 @@ bool MetaballRefracController::OnTouch( Actor actor, const TouchEvent& touch ) void MetaballRefracController::OnKeyEvent(const KeyEvent& event) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/model3d-view/model3d-view-example.cpp b/examples/model3d-view/model3d-view-example.cpp index c02d526..7021e55 100644 --- a/examples/model3d-view/model3d-view-example.cpp +++ b/examples/model3d-view/model3d-view-example.cpp @@ -262,7 +262,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/motion-blur/motion-blur-example.cpp b/examples/motion-blur/motion-blur-example.cpp index a07b41c..5df3cc4 100644 --- a/examples/motion-blur/motion-blur-example.cpp +++ b/examples/motion-blur/motion-blur-example.cpp @@ -400,7 +400,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/motion-stretch/motion-stretch-example.cpp b/examples/motion-stretch/motion-stretch-example.cpp index e4dc669..1e46e0c 100644 --- a/examples/motion-stretch/motion-stretch-example.cpp +++ b/examples/motion-stretch/motion-stretch-example.cpp @@ -372,7 +372,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/native-image-source/native-image-source-example.cpp b/examples/native-image-source/native-image-source-example.cpp index 1c887a8..073a223 100644 --- a/examples/native-image-source/native-image-source-example.cpp +++ b/examples/native-image-source/native-image-source-example.cpp @@ -384,7 +384,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/page-turn-view/page-turn-view-example.cpp b/examples/page-turn-view/page-turn-view-example.cpp index 03391e0..9e3a238 100644 --- a/examples/page-turn-view/page-turn-view-example.cpp +++ b/examples/page-turn-view/page-turn-view-example.cpp @@ -267,7 +267,7 @@ void PageTurnExample::Rotate( DemoOrientation orientation ) */ void PageTurnExample::OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/perf-scroll/perf-scroll.cpp b/examples/perf-scroll/perf-scroll.cpp index 5445363..8a7d2a0 100644 --- a/examples/perf-scroll/perf-scroll.cpp +++ b/examples/perf-scroll/perf-scroll.cpp @@ -438,7 +438,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/pivot/pivot-example.cpp b/examples/pivot/pivot-example.cpp index 231f3ed..5cf21e7 100644 --- a/examples/pivot/pivot-example.cpp +++ b/examples/pivot/pivot-example.cpp @@ -136,7 +136,7 @@ private: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/point-mesh/point-mesh-example.cpp b/examples/point-mesh/point-mesh-example.cpp index 16ce8c0..38b4028 100644 --- a/examples/point-mesh/point-mesh-example.cpp +++ b/examples/point-mesh/point-mesh-example.cpp @@ -203,7 +203,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/popup/popup-example.cpp b/examples/popup/popup-example.cpp index b85b74b..15475b5 100644 --- a/examples/popup/popup-example.cpp +++ b/examples/popup/popup-example.cpp @@ -671,7 +671,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/pre-render-callback/pre-render-callback-example.cpp b/examples/pre-render-callback/pre-render-callback-example.cpp index faeef29..57b3bdb 100644 --- a/examples/pre-render-callback/pre-render-callback-example.cpp +++ b/examples/pre-render-callback/pre-render-callback-example.cpp @@ -187,7 +187,7 @@ private: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/primitive-shapes/primitive-shapes-example.cpp b/examples/primitive-shapes/primitive-shapes-example.cpp index b613980..54fffa1 100644 --- a/examples/primitive-shapes/primitive-shapes-example.cpp +++ b/examples/primitive-shapes/primitive-shapes-example.cpp @@ -676,7 +676,7 @@ public: //If escape or the back button is pressed, quit the application (and return to the launcher) void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/progress-bar/progress-bar-example.cpp b/examples/progress-bar/progress-bar-example.cpp index 60433e1..30864e5 100644 --- a/examples/progress-bar/progress-bar-example.cpp +++ b/examples/progress-bar/progress-bar-example.cpp @@ -234,7 +234,7 @@ private: } void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/property-notification/property-notification-example.cpp b/examples/property-notification/property-notification-example.cpp index c54e239..2bb9c7a 100644 --- a/examples/property-notification/property-notification-example.cpp +++ b/examples/property-notification/property-notification-example.cpp @@ -88,7 +88,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/ray-marching/ray-marching-example.cpp b/examples/ray-marching/ray-marching-example.cpp index 249ae85..aeaf8b9 100644 --- a/examples/ray-marching/ray-marching-example.cpp +++ b/examples/ray-marching/ray-marching-example.cpp @@ -149,7 +149,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/reflection-demo/reflection-example.cpp b/examples/reflection-demo/reflection-example.cpp index ff2de1c..4dff874 100644 --- a/examples/reflection-demo/reflection-example.cpp +++ b/examples/reflection-demo/reflection-example.cpp @@ -625,7 +625,7 @@ private: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/refraction-effect/refraction-effect-example.cpp b/examples/refraction-effect/refraction-effect-example.cpp index 9bdff4a..5c64bcc 100644 --- a/examples/refraction-effect/refraction-effect-example.cpp +++ b/examples/refraction-effect/refraction-effect-example.cpp @@ -561,7 +561,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/remote-image-loading/remote-image-loading-example.cpp b/examples/remote-image-loading/remote-image-loading-example.cpp index 2e3f9bf..ae01d97 100644 --- a/examples/remote-image-loading/remote-image-loading-example.cpp +++ b/examples/remote-image-loading/remote-image-loading-example.cpp @@ -127,7 +127,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { @@ -138,7 +138,7 @@ public: void OnKey(const KeyEvent &event) { - if (event.GetState() == KeyEvent::Down) + if (event.GetState() == KeyEvent::DOWN) { std::cout<<"Window key : " << event.GetKeyCode() << std::endl; } @@ -154,7 +154,7 @@ public: bool OnControlKeyEvent(Toolkit::Control control, const KeyEvent &event) { - if (event.GetState() == KeyEvent::Down) + if (event.GetState() == KeyEvent::DOWN) { std::cout<<"Control down key : " << control.GetProperty< std::string >( Dali::Actor::Property::NAME ) << ", keyCode : " << event.GetKeyCode() << std::endl; } diff --git a/examples/renderer-stencil/renderer-stencil-example.cpp b/examples/renderer-stencil/renderer-stencil-example.cpp index 72e73a5..00df548 100644 --- a/examples/renderer-stencil/renderer-stencil-example.cpp +++ b/examples/renderer-stencil/renderer-stencil-example.cpp @@ -731,7 +731,7 @@ private: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/rendering-basic-light/rendering-basic-light-example.cpp b/examples/rendering-basic-light/rendering-basic-light-example.cpp index c96e37c..7408ca7 100644 --- a/examples/rendering-basic-light/rendering-basic-light-example.cpp +++ b/examples/rendering-basic-light/rendering-basic-light-example.cpp @@ -237,7 +237,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/rendering-basic-pbr/rendering-basic-pbr-example.cpp b/examples/rendering-basic-pbr/rendering-basic-pbr-example.cpp index c2faf03..f09ff63 100644 --- a/examples/rendering-basic-pbr/rendering-basic-pbr-example.cpp +++ b/examples/rendering-basic-pbr/rendering-basic-pbr-example.cpp @@ -252,7 +252,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/rendering-cube/rendering-cube.cpp b/examples/rendering-cube/rendering-cube.cpp index a610545..53e4d1a 100644 --- a/examples/rendering-cube/rendering-cube.cpp +++ b/examples/rendering-cube/rendering-cube.cpp @@ -120,7 +120,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/rendering-line/rendering-line.cpp b/examples/rendering-line/rendering-line.cpp index abb4544..292d1a1 100644 --- a/examples/rendering-line/rendering-line.cpp +++ b/examples/rendering-line/rendering-line.cpp @@ -113,7 +113,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/rendering-radial-progress/radial-progress.cpp b/examples/rendering-radial-progress/radial-progress.cpp index d0120b2..a3dcbfd 100644 --- a/examples/rendering-radial-progress/radial-progress.cpp +++ b/examples/rendering-radial-progress/radial-progress.cpp @@ -294,7 +294,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/rendering-skybox/rendering-skybox.cpp b/examples/rendering-skybox/rendering-skybox.cpp index 5368d3a..4e48b48 100644 --- a/examples/rendering-skybox/rendering-skybox.cpp +++ b/examples/rendering-skybox/rendering-skybox.cpp @@ -186,7 +186,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/rendering-textured-cube/rendering-textured-cube.cpp b/examples/rendering-textured-cube/rendering-textured-cube.cpp index 6230e0b..affa485 100644 --- a/examples/rendering-textured-cube/rendering-textured-cube.cpp +++ b/examples/rendering-textured-cube/rendering-textured-cube.cpp @@ -126,7 +126,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/rendering-triangle/rendering-triangle.cpp b/examples/rendering-triangle/rendering-triangle.cpp index ef3163d..882eaf4 100644 --- a/examples/rendering-triangle/rendering-triangle.cpp +++ b/examples/rendering-triangle/rendering-triangle.cpp @@ -113,7 +113,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/scroll-view/scroll-view-example.cpp b/examples/scroll-view/scroll-view-example.cpp index bee21c7..f326ae4 100644 --- a/examples/scroll-view/scroll-view-example.cpp +++ b/examples/scroll-view/scroll-view-example.cpp @@ -547,7 +547,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/shadows-and-lights/shadows-and-lights-example.cpp b/examples/shadows-and-lights/shadows-and-lights-example.cpp index a4aec57..2664df3 100644 --- a/examples/shadows-and-lights/shadows-and-lights-example.cpp +++ b/examples/shadows-and-lights/shadows-and-lights-example.cpp @@ -413,7 +413,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/simple-bitmap-font-text-label/simple-text-label-example.cpp b/examples/simple-bitmap-font-text-label/simple-text-label-example.cpp index 31e32c0..a7f6ff0 100644 --- a/examples/simple-bitmap-font-text-label/simple-text-label-example.cpp +++ b/examples/simple-bitmap-font-text-label/simple-text-label-example.cpp @@ -172,7 +172,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/simple-scroll-view/simple-scroll-view-example.cpp b/examples/simple-scroll-view/simple-scroll-view-example.cpp index b821911..b69bd98 100644 --- a/examples/simple-scroll-view/simple-scroll-view-example.cpp +++ b/examples/simple-scroll-view/simple-scroll-view-example.cpp @@ -150,7 +150,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/simple-text-field/simple-text-field.cpp b/examples/simple-text-field/simple-text-field.cpp index ef8be2c..dd730e5 100644 --- a/examples/simple-text-field/simple-text-field.cpp +++ b/examples/simple-text-field/simple-text-field.cpp @@ -74,7 +74,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/simple-text-label/simple-text-label-example.cpp b/examples/simple-text-label/simple-text-label-example.cpp index 8ef5bb4..433edb2 100644 --- a/examples/simple-text-label/simple-text-label-example.cpp +++ b/examples/simple-text-label/simple-text-label-example.cpp @@ -71,7 +71,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/simple-text-renderer/simple-text-renderer-example.cpp b/examples/simple-text-renderer/simple-text-renderer-example.cpp index b522a5b..6f7dc21 100644 --- a/examples/simple-text-renderer/simple-text-renderer-example.cpp +++ b/examples/simple-text-renderer/simple-text-renderer-example.cpp @@ -327,7 +327,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/simple-text-visual/simple-text-visual-example.cpp b/examples/simple-text-visual/simple-text-visual-example.cpp index 89ba3e2..f3dfdb0 100644 --- a/examples/simple-text-visual/simple-text-visual-example.cpp +++ b/examples/simple-text-visual/simple-text-visual-example.cpp @@ -80,7 +80,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/simple-visuals-control/simple-visuals-application.cpp b/examples/simple-visuals-control/simple-visuals-application.cpp index 30b1765..f20ffc7 100644 --- a/examples/simple-visuals-control/simple-visuals-application.cpp +++ b/examples/simple-visuals-control/simple-visuals-application.cpp @@ -77,7 +77,7 @@ void SimpleVisualsApplication::OnKeyEvent( const KeyEvent& keyEvent ) { static int keyPressed = 0; - if( keyEvent.GetState() == KeyEvent::Down) + if( keyEvent.GetState() == KeyEvent::DOWN) { if( keyPressed == 0 ) // Is this the first down event? { @@ -93,7 +93,7 @@ void SimpleVisualsApplication::OnKeyEvent( const KeyEvent& keyEvent ) } keyPressed = 1; } - else if( keyEvent.GetState() == KeyEvent::Up ) + else if( keyEvent.GetState() == KeyEvent::UP ) { keyPressed = 0; } diff --git a/examples/size-negotiation/size-negotiation-example.cpp b/examples/size-negotiation/size-negotiation-example.cpp index 8fff2d3..40066fa 100644 --- a/examples/size-negotiation/size-negotiation-example.cpp +++ b/examples/size-negotiation/size-negotiation-example.cpp @@ -765,7 +765,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/sparkle/sparkle-effect-example.cpp b/examples/sparkle/sparkle-effect-example.cpp index cdae958..d3c0bc0 100644 --- a/examples/sparkle/sparkle-effect-example.cpp +++ b/examples/sparkle/sparkle-effect-example.cpp @@ -248,7 +248,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/styling/styling-application.cpp b/examples/styling/styling-application.cpp index 220ca24..d50b731 100644 --- a/examples/styling/styling-application.cpp +++ b/examples/styling/styling-application.cpp @@ -635,7 +635,7 @@ void StylingApplication::OnKeyEvent( const KeyEvent& keyEvent ) { static int keyPressed = 0; - if( keyEvent.GetState() == KeyEvent::Down) + if( keyEvent.GetState() == KeyEvent::DOWN) { if( keyPressed == 0 ) // Is this the first down event? { @@ -676,7 +676,7 @@ void StylingApplication::OnKeyEvent( const KeyEvent& keyEvent ) } keyPressed = 1; } - else if( keyEvent.GetState() == KeyEvent::Up ) + else if( keyEvent.GetState() == KeyEvent::UP ) { keyPressed = 0; } diff --git a/examples/super-blur-view/super-blur-view-example.cpp b/examples/super-blur-view/super-blur-view-example.cpp index 17a1e41..6089199 100644 --- a/examples/super-blur-view/super-blur-view-example.cpp +++ b/examples/super-blur-view/super-blur-view-example.cpp @@ -91,7 +91,7 @@ private: void OnKeyEvent( const KeyEvent& event ) { - if ( event.GetState() == KeyEvent::Down ) + if ( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/text-editor/text-editor-example.cpp b/examples/text-editor/text-editor-example.cpp index d2d781f..82c969b 100644 --- a/examples/text-editor/text-editor-example.cpp +++ b/examples/text-editor/text-editor-example.cpp @@ -220,7 +220,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/text-field/text-field-example.cpp b/examples/text-field/text-field-example.cpp index 4d2b251..001a342 100644 --- a/examples/text-field/text-field-example.cpp +++ b/examples/text-field/text-field-example.cpp @@ -185,7 +185,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/text-fonts/text-fonts-example.cpp b/examples/text-fonts/text-fonts-example.cpp index 2f0a43d..211bd98 100644 --- a/examples/text-fonts/text-fonts-example.cpp +++ b/examples/text-fonts/text-fonts-example.cpp @@ -206,7 +206,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/text-label-emojis/text-label-emojis.cpp b/examples/text-label-emojis/text-label-emojis.cpp index e2460c2..9ec53d2 100644 --- a/examples/text-label-emojis/text-label-emojis.cpp +++ b/examples/text-label-emojis/text-label-emojis.cpp @@ -116,7 +116,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/text-label-multi-language/text-label-multi-language-example.cpp b/examples/text-label-multi-language/text-label-multi-language-example.cpp index 0edaf8b..2ebb286 100644 --- a/examples/text-label-multi-language/text-label-multi-language-example.cpp +++ b/examples/text-label-multi-language/text-label-multi-language-example.cpp @@ -118,7 +118,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/text-label/text-label-example.cpp b/examples/text-label/text-label-example.cpp index 0811209..7e904c1 100644 --- a/examples/text-label/text-label-example.cpp +++ b/examples/text-label/text-label-example.cpp @@ -619,7 +619,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/text-memory-profiling/text-memory-profiling-example.cpp b/examples/text-memory-profiling/text-memory-profiling-example.cpp index a6768e3..8ab9ec1 100644 --- a/examples/text-memory-profiling/text-memory-profiling-example.cpp +++ b/examples/text-memory-profiling/text-memory-profiling-example.cpp @@ -329,7 +329,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/text-overlap/text-overlap-example.cpp b/examples/text-overlap/text-overlap-example.cpp index dbcf030..05f5e65 100644 --- a/examples/text-overlap/text-overlap-example.cpp +++ b/examples/text-overlap/text-overlap-example.cpp @@ -120,7 +120,7 @@ bool TextOverlapController::OnClicked( Button button ) void TextOverlapController::OnKeyEvent( const KeyEvent& keyEvent ) { - if( keyEvent.GetState() == KeyEvent::Down && + if( keyEvent.GetState() == KeyEvent::DOWN && ( IsKey( keyEvent, DALI_KEY_BACK ) || IsKey( keyEvent, DALI_KEY_ESCAPE ) ) ) { diff --git a/examples/text-scrolling/text-scrolling-example.cpp b/examples/text-scrolling/text-scrolling-example.cpp index 0350418..4144687 100644 --- a/examples/text-scrolling/text-scrolling-example.cpp +++ b/examples/text-scrolling/text-scrolling-example.cpp @@ -354,7 +354,7 @@ public: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/textured-mesh/textured-mesh-example.cpp b/examples/textured-mesh/textured-mesh-example.cpp index 32a1c76..923aa08 100644 --- a/examples/textured-mesh/textured-mesh-example.cpp +++ b/examples/textured-mesh/textured-mesh-example.cpp @@ -183,7 +183,7 @@ public: void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { diff --git a/examples/tilt/tilt-example.cpp b/examples/tilt/tilt-example.cpp index c558023..b7d12f6 100644 --- a/examples/tilt/tilt-example.cpp +++ b/examples/tilt/tilt-example.cpp @@ -97,7 +97,7 @@ public: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/tooltip/tooltip-example.cpp b/examples/tooltip/tooltip-example.cpp index cbd6667..279b00e 100644 --- a/examples/tooltip/tooltip-example.cpp +++ b/examples/tooltip/tooltip-example.cpp @@ -117,7 +117,7 @@ private: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/transitions/transition-application.cpp b/examples/transitions/transition-application.cpp index a0913fe..1a3c291 100644 --- a/examples/transitions/transition-application.cpp +++ b/examples/transitions/transition-application.cpp @@ -198,7 +198,7 @@ void TransitionApplication::OnKeyEvent( const KeyEvent& keyEvent ) { static int keyPressed = 0; - if( keyEvent.GetState() == KeyEvent::Down) + if( keyEvent.GetState() == KeyEvent::DOWN) { if( keyPressed == 0 ) // Is this the first down event? { @@ -214,7 +214,7 @@ void TransitionApplication::OnKeyEvent( const KeyEvent& keyEvent ) } keyPressed = 1; } - else if( keyEvent.GetState() == KeyEvent::Up ) + else if( keyEvent.GetState() == KeyEvent::UP ) { keyPressed = 0; } diff --git a/examples/video-view/video-view-example.cpp b/examples/video-view/video-view-example.cpp index 6a39047..fb5b5a3 100644 --- a/examples/video-view/video-view-example.cpp +++ b/examples/video-view/video-view-example.cpp @@ -262,7 +262,7 @@ private: */ void OnKeyEvent(const KeyEvent& event) { - if(event.GetState() == KeyEvent::Down) + if(event.GetState() == KeyEvent::DOWN) { if( IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ) ) { diff --git a/examples/visual-fitting-mode/visual-fitting-mode-example.cpp b/examples/visual-fitting-mode/visual-fitting-mode-example.cpp index 48e921f..b9ca324 100644 --- a/examples/visual-fitting-mode/visual-fitting-mode-example.cpp +++ b/examples/visual-fitting-mode/visual-fitting-mode-example.cpp @@ -197,7 +197,7 @@ private: */ void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/examples/visual-transitions/transition-application.cpp b/examples/visual-transitions/transition-application.cpp index 0c08afe..2d1bb62 100644 --- a/examples/visual-transitions/transition-application.cpp +++ b/examples/visual-transitions/transition-application.cpp @@ -324,7 +324,7 @@ void TransitionApplication::OnKeyEvent( const KeyEvent& keyEvent ) { static int keyPressed = 0; - if( keyEvent.GetState() == KeyEvent::Down) + if( keyEvent.GetState() == KeyEvent::DOWN) { if( keyPressed == 0 ) // Is this the first down event? { @@ -340,7 +340,7 @@ void TransitionApplication::OnKeyEvent( const KeyEvent& keyEvent ) } keyPressed = 1; } - else if( keyEvent.GetState() == KeyEvent::Up ) + else if( keyEvent.GetState() == KeyEvent::UP ) { keyPressed = 0; } diff --git a/examples/web-view/web-view-example.cpp b/examples/web-view/web-view-example.cpp index 13cc242..b50fb42 100644 --- a/examples/web-view/web-view-example.cpp +++ b/examples/web-view/web-view-example.cpp @@ -114,7 +114,7 @@ public: void OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) { diff --git a/shared/dali-table-view.cpp b/shared/dali-table-view.cpp index a073d98..204ae55 100644 --- a/shared/dali-table-view.cpp +++ b/shared/dali-table-view.cpp @@ -699,7 +699,7 @@ void DaliTableView::SetupInnerPageCubeEffect() void DaliTableView::OnKeyEvent( const KeyEvent& event ) { - if( event.GetState() == KeyEvent::Down ) + if( event.GetState() == KeyEvent::DOWN ) { if ( IsKey( event, Dali::DALI_KEY_ESCAPE) || IsKey( event, Dali::DALI_KEY_BACK) ) { -- 2.7.4