mouse_check_button_pressed(mb_left) not triggering fast enough on iOS

Discussion in 'Programming' started by carbonneau, Jan 4, 2018.

  1. carbonneau

    carbonneau Member

    Joined:
    May 26, 2017
    Posts:
    7
    I have a simple step function on an object with :

    if (mouse_check_button_pressed(mb_left)) {
    show_debug_message("IN!!");
    }
    if (mouse_check_button_released(mb_left)) {
    show_debug_message("OUT!!");
    }

    When i click as fast as I can in the yoyo runner with my mouse, everything works correctly and all messages corresponding to clicks and releases are displayed.

    When I tap as fast as I can on my iPhone, only about half of the taps are triggered. It tried setting the
    gesture_double_tap_time(0.0) and increasing the gesture_drag_time(0.3) but those only play a role in the gesture events. I don't want to use the tap gesture event since i was triggering even less than in the step function.
     
  2. mst3kdavid

    mst3kdavid Member

    Joined:
    Aug 24, 2017
    Posts:
    40
    try putting it in the mouse button pressed/released event instead of step event. doubt it will change much good luck
     
  3. CloseRange

    CloseRange Member

    Joined:
    Jul 2, 2016
    Posts:
    833
    when you tap fast GM registures double tap as right click
    if you don't need double tapping then do this:
    Code:
    device_mouse_dbclick_enable(false);
    then set it to true when you need it again
     
  4. carbonneau

    carbonneau Member

    Joined:
    May 26, 2017
    Posts:
    7
    That did it! Thanks so much!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice