textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutbutton.cpp
branchRCL_3
changeset 18 c8fb4cf7b3ae
parent 3 f5a1e66df979
child 19 5e18d8c489d6
--- a/textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutbutton.cpp	Tue Apr 27 16:59:43 2010 +0300
+++ b/textinput/peninputarc/src/peninputlayoutcontrol/peninputlayoutbutton.cpp	Tue May 11 16:31:42 2010 +0300
@@ -15,6 +15,7 @@
 *
 */
 
+#include <featmgr.h>
 #include <AknFepGlobalEnums.h>
 #include "peninputlayoutbutton.h"
 #include "peninputlayouttimer.h"
@@ -47,7 +48,23 @@
     CleanupStack::Pop(btn);
     return btn;    
     }
+
+// ---------------------------------------------------------------------------
+// CButtonBase::BaseConstructL
+// Do base contruction
+// ---------------------------------------------------------------------------
+//
+EXPORT_C void CButtonBase::BaseConstructL()
+    {
+    CFepUiBaseCtrl::BaseConstructL();
     
+    //tap accuracy enhancement
+    if( FeatureManager::FeatureSupported( KFeatureIdFfCapacitiveDisplay ))
+        {
+        EnableExtResponseArea( ETrue, TRect(TPoint(10,10),TSize(10,10)) );
+        }
+    }
+
 // ---------------------------------------------------------------------------
 // CButtonBase::CButtonBase
 // C++ default constructor
@@ -73,6 +90,7 @@
     
     SetBkColor(KDefaultButtonBackCol);
 
+    //todo code refactoring needed, move to BaseConstructL
 #ifdef RD_TACTILE_FEEDBACK     
     //Advanced Tactile feedback REQ417-47932
     if(aUiLayout)