×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    3

    Question How to capture touch event in widget of S60 5th

    My device is 5800 and the only navigation method is touch

    but I do not know which event is touch event.

    sometimes click event can be instead of touch event

    such as click a button

    but when your finger slide down or up on the screen to make the list scroll down or up, the click event can do nothing about it

    Now, I hope someone can tell me how can I capture the event when user's finger slide up or down on the screen?


    Thank you very much~~!

  2. #2
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Re: How to capture touch event in widget of S60 5th

    I would like to know aswell.
    Also like how to catch an image/button still pressed.
    I tried using OnMouseDown and OnMouseUp events and it worked fine
    with a computer and a mouse, as long as mouse button pressed action was ongoing, but not for 5800.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    1

    Re: How to capture touch event in widget of S60 5th

    Overide: pointerPressed in your canvas instance, something like:

    public void pointerPressed(int x, int y) {
    // do something with x,y co-ordiantes
    }

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: How to capture touch event in widget of S60 5th

    Hi bradcan,

    this is the Web Runtime discussion board, while your code seems to be Java ME-related. Please read carefully discussion threads before replying.

    Thanks,
    Pit

Similar Threads

  1. How to load image and replace on touch event ?
    By krus in forum Symbian User Interface
    Replies: 8
    Last Post: 2009-02-10, 18:18
  2. s60 5th edition MTM problem
    By shafali gupta in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-01-14, 13:26
  3. Carbide.c++ does have S60 5th Edition option
    By sanjith.r in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 7
    Last Post: 2008-10-17, 02:38
  4. What is going on with Vibration on S60?
    By amd_rikus in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-16, 00:29
  5. S60 emulator - audio/video capture
    By ajaybrar in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2006-05-06, 20:41

Posting Permissions

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