×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Apr 2005
    Location
    Germany
    Posts
    44

    Question Capture slider events on N95

    Hello,

    I would like to capture the event when the slider on the Nokia N95 opens and closes. I have tried on-device-debugging and waiting for EKeyFlipOpen, but it did not help.

    Is this documented somewhere? What iCode do I have to listen?

    The same problem exists with the slider on the Nokia E65.

    Best, Alexander.

  2. #2
    Registered User
    Join Date
    Jan 2007
    Posts
    19

    Re: Capture slider events on N95

    I believe the correct keys should be EStdKeyDevice4 and EStdKeyDevice5. Don't take my word for it, but you can, since you have the debugger, put a breakpoint in offerkeyeventL and do the sliding to see which TKeyEvent it returns. I hope that helps.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Location
    Germany
    Posts
    44

    Re: Capture slider events on N95

    Hello everybody,
    I analyzed the N95 and I found out that the slider sends the following key events:

    Code:
    (1) Open keyboard slider
    aType = 0x0003, iCode = 0x0000, iScanCode = 0x00ac  (EStdKeyDevice8)
    aType = 0x0002, iCode = 0x0000, iScanCode = 0x00ac
    
    (2) Close keyboard slider
    aType = 0x0003, iCode = 0x0000, iScanCode = 0x00ad  (EStdKeyDevice9)
    aType = 0x0002, iCode = 0x0000, iScanCode = 0x00ad
    
    (3) Open music slider
    aType = 0x0003, iCode = 0x0000, iScanCode = 0x00a8  (EStdKeyDevice4)
    aType = 0x0002, iCode = 0x0000, iScanCode = 0x00a8
    
    (4) Close music slider
    aType = 0x0003, iCode = 0x0000, iScanCode = 0x00a9  (EStdKeyDevice5)
    aType = 0x0002, iCode = 0x0000, iScanCode = 0x00a9
    What confused me initially was that in the S60 SDK (eikon.hrh), there are some helpful ids defined:
    #define EKeyGripOpen EKeyDevice4
    #define EKeyGripClose EKeyDevice5
    #define EKeyTwistOpen EKeyDevice8
    #define EKeyTwistClose EKeyDevice9

    But (there is always a But), they do not help. There is never a iCode sent. The slider only sends iScanCode events. There is no EStdKeyGripOpen defined, so you have to put the generic defines from Symbian into your code.

    Maybe somebody should put this in the Wiki?

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Capture slider events on N95

    Quote Originally Posted by AlexOfBorg View Post
    Maybe somebody should put this in the Wiki?
    You're most welcome to do that yourself.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  5. #5
    Registered User
    Join Date
    Apr 2005
    Location
    Germany
    Posts
    44

    Re: Capture slider events on N95

    Quote Originally Posted by ltomuta View Post
    You're most welcome to do that yourself.
    Hello, I would like to put this in the Wiki. But there is no way to create a new page. What would be the best article I can add this information to?

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Capture slider events on N95

    Go to the wiki and type your page title in the wiki search box but please don't use a "How to ..." title, there are so many by now How about "Capturing the slider events"?

    Once the title set press the "Go" button, it will take you to a page saying:
    "There is no page titled "Capturing the slider events". You can create this page."

    Click on "create this page" and start writing the article. Then just make sure to add all the suitable categories so that the info is easy to find.

    Good luck!
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  7. #7
    Registered User
    Join Date
    Apr 2005
    Location
    Germany
    Posts
    44

    Re: Capture slider events on N95

    This is fun. I just made my first contribution to the Wiki!

    http://wiki.forum.nokia.com/index.ph..._slider_events

  8. #8
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Capture slider events on N95

    Well done! More of them and of constant good quality and a N95 could be yours.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. Replies: 1
    Last Post: 2008-09-10, 07:54
  2. expert,how can i capture all the events???
    By tsling in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-11-25, 04:07
  3. expert,how can i capture all the events??
    By tsling in forum Symbian
    Replies: 0
    Last Post: 2005-11-25, 02:45
  4. How to capture drawing events in background application?
    By sai_irfan in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-10-28, 11:44
  5. Capture Key events away from the editor window
    By amirelattar in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-12-17, 08:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×