×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    38

    How to capture key press and key release events in series 60 for 7650?

    hi,

    I want some information regarding how to capture, key press and key release events in series60, could anyone please give me some information regarding this? ASAP

    Thanks,

    Varsha.

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    371

    RE: How to capture key press and key release events in series 60 for 7650?

    Hello,

    An application handles key events usually by overriding CCoeControl::OfferKeyEventL() function. See SDK Help for details. In addition, many example applications do key handling. For example, Events example application in the download area could be useful. It's for 9210, but key handling is basically same in Series 60.

    Best Regards,
    Marko / Forum Nokia

  3. #3
    Registered User
    Join Date
    Mar 2003
    Location
    UK
    Posts
    31
    TKeyResponse MyClass::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
    {
    // move left when left arrow pressed
    if( aType==EEventKeyDown && aKeyEvent.iScanCode == EStdKeyLeftArrow)
    {
    DoSomething();
    return EKeyWasConsumed;
    }
    // move right when right arrow released
    else if ( aType==EEventKeyUp && aKeyEvent.iScanCode == EStdKeyRightArrow)
    {
    DoSomethingElse();
    return EKeyWasConsumed;
    }

Posting Permissions

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