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

    Posts
    2 Posts
    Thread AuthorThread Author   #1  

    Default Disable HandleSingleTouchButtonCB and enable HandleSingleTouchMotionCB

    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;
    }
  2. jeroen_13's Avatar
    CrackBerry Genius

    Posts
    1,760 Posts
    PIN
    Just PM
    #2  

    Default

    Please ask a moderator to move your topic to the 'BB10 Development' subforum, or re-post your topic there. BB10 devs will help you out further.
    ❤ button

    ✪✪✪ Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME. ✔✔✔[PB]Crackberry Forum App (NON-ANDROID) ✪✪✪
    ☢ bbUI.js ☢ expert -- Need HELP ? Just PM me ! ☣ Blackberry Playbook 64GB ☣

Similar Threads

  1. Holster that does not drain battery and enables sleep
    By bleistift in forum BBOS Phone Accessories
    Replies: 24
    Last Post: 05-13-2009, 01:48 PM
  2. What effect does disabling WiFi and 3G have on battery life?
    By NathanE in forum General BlackBerry Discussion
    Replies: 10
    Last Post: 05-12-2009, 12:35 PM
  3. Disabling backup and delete on DM 4.6?
    By Guy36 in forum General BlackBerry Discussion
    Replies: 1
    Last Post: 03-24-2009, 02:21 PM
  4. How to disable email and BB messenger alert?
    By naaz90 in forum BlackBerry Storm
    Replies: 2
    Last Post: 12-19-2008, 08:45 AM
  5. Dodging IT policy and enabling Bluetooth?
    By horatio1996 in forum BlackBerry 8830 WE
    Replies: 5
    Last Post: 06-26-2008, 03:57 PM

Posting Permissions