Only Disabling Mouse but not the Touch?

Discussion in 'Javascript/Plugin Support' started by Sugor, Mar 25, 2019.

  1. Sugor

    Sugor Veteran Veteran

    Messages:
    54
    Likes Received:
    10
    First Language:
    English
    Primarily Uses:
    RMMV
    I wanted to disable only the "mouse feature". If i disabled the mouse feature will the touch feature will be affected?? i'm using Galv's Disable Mouse
    Thank you!
     
    #1
  2. AfroKat

    AfroKat Villager Member

    Messages:
    23
    Likes Received:
    16
    First Language:
    English
    Primarily Uses:
    RMMV
    Don't think this is a game mechanic, but anyways...

    If you disable the mouse, I'm pretty sure the touch feature of the mouse is also gone. Because mainly you don't have a moise anymore
     
    #2
  3. Sugor

    Sugor Veteran Veteran

    Messages:
    54
    Likes Received:
    10
    First Language:
    English
    Primarily Uses:
    RMMV
    What about putting the Picture Event of YEP? while the mouse is disabled?
     
    #3
  4. Shaz

    Shaz Veteran Veteran

    Messages:
    37,706
    Likes Received:
    11,411
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    The mouse feature is the touch feature, so yes, disabling the mouse will affect the touch functionality.

    Don't understand your second question.
     
    #4
  5. Sugor

    Sugor Veteran Veteran

    Messages:
    54
    Likes Received:
    10
    First Language:
    English
    Primarily Uses:
    RMMV
    Uhmm okay okay thanks i understand... i actually wanted to release on PC and Mobile so i think i will turn ON the Disable Mouse before Deploying it
    as Pc game and Disable it on deploying the Mobile Version.. THANKS
     
    #5
  6. Sugor

    Sugor Veteran Veteran

    Messages:
    54
    Likes Received:
    10
    First Language:
    English
    Primarily Uses:
    RMMV
    Uhmm okay okay thanks i understand... i actually wanted to release on PC and Mobile so i think i will turn ON the Disable Mouse before Deploying it
    as Pc game and Disable it on deploying the Mobile Version.. THANKS
     
    #6
  7. Shaz

    Shaz Veteran Veteran

    Messages:
    37,706
    Likes Received:
    11,411
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Do you have a link to the plugin?
     
    #7
  8. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,766
    Likes Received:
    10,579
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to JavaScript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.


    In addition...

    Sugor, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


    If you want to add something just edit your earlier post and add the additional info or query.
     
    #8
  9. OmnislashXX

    OmnislashXX Veteran Veteran

    Messages:
    595
    Likes Received:
    3,665
    Location:
    Maryland
    First Language:
    English
    Primarily Uses:
    RMMV
    You can try Yanfly's Input Touch Disabler. That one, you can disable parts of the mouse. I had to do it because Dash is permanently ingrained into the mouse button and I wanted the feature gone.
     
    #9
  10. Sugor

    Sugor Veteran Veteran

    Messages:
    54
    Likes Received:
    10
    First Language:
    English
    Primarily Uses:
    RMMV
    #10
  11. Sugor

    Sugor Veteran Veteran

    Messages:
    54
    Likes Received:
    10
    First Language:
    English
    Primarily Uses:
    RMMV
    Thank you! I'll try that :D
     
    #11
  12. Shaz

    Shaz Veteran Veteran

    Messages:
    37,706
    Likes Received:
    11,411
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Use this:

    Code:
    var _modTouchInput_onMouseDown = TouchInput._onMouseDown;
    TouchInput._onMouseDown = function(event) {
      if (Utils.isMobileDevice()) {
        _modTouchInput_onMouseDown.call(this, event);
      }
    }
    Save it as a new file with a .js extension in your js/plugins folder, and add it to the Plugin Manager. This will replace Galv's Disable Mouse Click plugin, so you can remove that one.

    It SHOULD disable the mouse on the PC but not on mobile devices.
     
    #12
  13. Sugor

    Sugor Veteran Veteran

    Messages:
    54
    Likes Received:
    10
    First Language:
    English
    Primarily Uses:
    RMMV
    Thank You very Much!!
     
    #13
  14. Shaz

    Shaz Veteran Veteran

    Messages:
    37,706
    Likes Received:
    11,411
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Did you try it? Does it work okay on both platforms?

    I haven't tested it, so if it doesn't work, check the console (F8 to open Developer Tools, then go to the Console tab) to see if there's any error message.
     
    #14
  15. Sugor

    Sugor Veteran Veteran

    Messages:
    54
    Likes Received:
    10
    First Language:
    English
    Primarily Uses:
    RMMV
    The mouse has been disabled but not yet tested on mobile... But i trust i really am not a programmer so i don't understand much in it... actually i really learned few but not much...it's just that "Common Sense"
    Still THANK YOU i trust u
     
    #15
    Shaz likes this.

Share This Page