Hi,
someone can recall me what is the scancode of the camera key in S60 3rd AND 5th ? I can find it back and it doesn't seem to be the same in the two edition ...
Thanks,
Domi.
Hi,
someone can recall me what is the scancode of the camera key in S60 3rd AND 5th ? I can find it back and it doesn't seem to be the same in the two edition ...
Thanks,
Domi.
----------------------------------------------------------------------------------
FExplorer is my baby !
you can get the FREE version from www.gosymbian.com
you can get the PRO version from http://store.ovi.com/content/339454
Hi,
yeps, I had checked this wiki but it's for 2nd & 3rd edition !, is this the same for the 5th ed ?
thanks for your fast reply,
Domi.
----------------------------------------------------------------------------------
FExplorer is my baby !
you can get the FREE version from www.gosymbian.com
you can get the PRO version from http://store.ovi.com/content/339454
Try to use EKeyCamera (EKeyDevice7) for the 5th ed.
Humm .. are you sure ?
EKeyCamera is not defined in any include's and when using EKeyDevice7, my key is not captured in ::HandleKeyEventL although, in 3rd edition, EStdKeyApplication1A is processed correctly (that's mean that my code seems ok ....)
thanks,
Domi.
----------------------------------------------------------------------------------
FExplorer is my baby !
you can get the FREE version from www.gosymbian.com
you can get the PRO version from http://store.ovi.com/content/339454
If you happen to have an actual device at hand, you could consider creating an application in 5-10 minutes for listing/logging codes you get in OfferKeyEventL.
yes, that's true, I have to catch the code from OfferKeyEventL but it seems that this code is not the same as received in HandleKeyEventL from an appli running in background ... but I'm maybe wrong !
kind regards,
Domi.
----------------------------------------------------------------------------------
FExplorer is my baby !
you can get the FREE version from www.gosymbian.com
you can get the PRO version from http://store.ovi.com/content/339454
Personally I use the following code for checking keycodesWhere CCodeCheckView is a CCoeControl, andCode:void CCodeCheckView::Draw(const TRect& /*aRect*/) const { CWindowGc& gc = SystemGc(); TRect drawRect = Rect(); const CFont* fontUsed; gc.Clear(); fontUsed = iEikonEnv->TitleFont(); gc.UseFont(fontUsed); for(TInt i=0;i<EVENTS;i++) { _LIT(KFormat,"%5d %5d %x %d"); TBuf<40> buf; buf.Format(KFormat,iEvents[i].iScanCode,iEvents[i].iCode,iEvents[i].iModifiers,iEvents[i].iRepeats); gc.DrawText(buf,TPoint(0,(i+1)*fontUsed->HeightInPixels())); } gc.DiscardFont(); } TKeyResponse CCodeCheckView::OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType) { for(TInt i=0;i<EVENTS-1;i++) iEvents[i]=iEvents[i+1]; iEvents[EVENTS-1]=aKeyEvent; DrawNow(); return EKeyWasConsumed; }Code:#define EVENTS 8 TKeyEvent iEvents[EVENTS];
thanks, thanks & thanks for sharing this code (very usefull) !!
Domi.
----------------------------------------------------------------------------------
FExplorer is my baby !
you can get the FREE version from www.gosymbian.com
you can get the PRO version from http://store.ovi.com/content/339454
I have found the following scan code for the camera key :
3rd ed : 0xF882 (63618)
5th ed : 0xF880 (63616)
it's strange that there is a difference ...
Domi.
----------------------------------------------------------------------------------
FExplorer is my baby !
you can get the FREE version from www.gosymbian.com
you can get the PRO version from http://store.ovi.com/content/339454