Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:02, 14 November 2007.

KIS000563 - Camera shutter key (EKeyCamera events) cannot be used in 3rd party applications

From Forum Nokia Wiki


Camera shutter key (EKeyCamera events) cannot be used in 3rd party applications
KIS000563
Overview
The camera shutter key cannot be used for capturing images, because it is reserved for the system camera application.
Category
Symbian C++
Subcategory
Camera & Video
Reported against
S60 2nd Edition, S60 3rd Edition
All devices that have the camera shutter key (e.g., Nokia N70, Nokia N90)
 
Date identified
January 25, 2007, update March 8, 2007
Symptoms
-
Detailed description
The SDK header eikon.hrh lists the key code for the camera shutter key (EKeyCamera). However, key events from EKeyCamera are consumed and sent to the system camera application only, and cannot be captured by 3rd parties.
How to reproduce
-
Solution
No known solution (for EKeyCamera events).
Devices with AutoFocus capability:
Devices that have a camera with AutoFocus capability use a different key code for the shutter key. Events from this key can be captured if the application has SwEvent capability.
    #define EKeyCameraShutter       0xf883
Events from this key need to be explicitly requested from the window server:
    // Capture events from the camera shutter key (SwEvent capability required)
    iCameraKeyHandle = iCoeEnv->RootWin().CaptureKey( EKeyCameraShutter, 0, 0 );
The return value iCameraKeyHandle (TInt32) is used for canceling the key capture request, typically when exiting the application:
    if ( iCameraKeyHandle >= 0 )
        {
        iCoeEnv->RootWin().CancelCaptureKey( iCameraKeyHandle );
        }
Focus key events:
Pressing the shutter key halfway down generates separate key events. EEventKeyDown and EEventKeyUp events from this key can be detected with the following scan code:
    #define EStdKeyCameraFocus      0xe2
Related Discussions
Thread Thread Starter Forum Replies Last Post
Nokia OS phones... marycore General Symbian C++ 3 2004-12-10 08:07
Access to Nokia soft key and Fire key prafull_14 Mobile Java Tools & SDKs 6 2007-03-14 16:22
How to invalidate the menu key? smartbrisk General Symbian C++ 2 2005-03-16 06:02
NumberFormatException when notifyDestroyed() karmis Mobile Java General 3 2007-04-25 10:39
Image EXIF data kburgess Symbian Media (Graphics & Sounds) 4 2006-01-12 21:11
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZKnowledgeBaseContentQ
     qfnZtypeQUqfnTypeZKnownIssueQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX