Welcome to the CrackBerry Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 1 of 1
  1. kavernar's Avatar
    CrackBerry Newbie

    Posts
    2 Posts
    Thread AuthorThread Author   #1  

    Default Motion event detection

    I'm trying to make a simple game only with motion gestures with marmalade c++. I would like to disable single touch events and enable only motion events.
    The point of the game is to drag images over the surface around some barriers, but if single touch is enabled then the images jump to the spot where I touch the screen. I would like to make the images to move only on motion events.
    Is it even posible?

    Sorry for my bad english....

    My code for touch detection is
    <code>
    void HandleSingleTouchButtonCB(s3ePointerEvent* event)
    {
    CTouch* touch = g_Input.getTouch(0);
    touch->active = event->m_Pressed != 0;
    touch->x = event->m_x;
    touch->y = event->m_y;
    }
    //
    // HandleSingleTouchMotionCB - The system will call this callback when the user moves their finger on the screen
    //
    void HandleSingleTouchMotionCB(s3ePointerMotionEvent* event)
    {
    CTouch* touch = g_Input.getTouch(0);
    touch->x = event->m_x;
    touch->y = event->m_y;
    }
    </code>

Similar Threads

  1. upcoming events in calendar on home screen
    By md_massimino in forum General BlackBerry Discussion
    Replies: 2
    Last Post: 07-29-2007, 01:11 PM
  2. 8100: Adding Outlook Calendar Events to my Blackberry Calendar
    By bmoses76 in forum BlackBerry Pearl 8100
    Replies: 2
    Last Post: 05-31-2007, 02:44 PM
  3. Research In Motion use LEGO Machines to Test Blackberry
    By MMB916 in forum General BlackBerry Discussion
    Replies: 2
    Last Post: 04-24-2007, 11:26 PM
  4. Replies: 6
    Last Post: 04-12-2007, 04:55 AM
  5. Research in Motion sales expected to surge
    By MMB916 in forum News & Rumors
    Replies: 2
    Last Post: 04-08-2007, 06:19 PM

Posting Permissions