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

    2 Posts
    0 Post(s)
    0 Thread(s)
    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
    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;

Similar Threads

  1. upcoming events in calendar on home screen
    By md_massimino in forum General BlackBerry Discussion
    Replies: 2
    Last Post: 07-29-07, 02: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-07, 03:44 PM
  3. Research In Motion use LEGO Machines to Test Blackberry
    By MMB916 in forum General BlackBerry Discussion
    Replies: 2
    Last Post: 04-25-07, 12:26 AM
  4. Replies: 6
    Last Post: 04-12-07, 05:55 AM
  5. Research in Motion sales expected to surge
    By MMB916 in forum News & Rumors
    Replies: 2
    Last Post: 04-08-07, 07:19 PM

Posting Permissions