Mouse buttons

Discussion in 'RPG Maker MV' started by brandos, Dec 12, 2016.

  1. brandos

    brandos Veteran Veteran

    Messages:
    147
    Likes Received:
    31
    First Language:
    German
    Hello,


    Is there a way to remap what mouse buttons do?
    As example when pressing left mouse button it should trigger #Q and when pressing right mouse button #W


    Help would be appreciated.
     
    #1
  2. Jonforum

    Jonforum Veteran Veteran

    Messages:
    1,586
    Likes Received:
    1,365
    Location:
    Canada / Qu├ębec
    First Language:
    French
    Primarily Uses:
    RMMV


    Yes but i don't remember keyboard key, i deactivated keyboard, but you can remap mouse here.
    i make my own mouse function for call common event and show special icon.

    Code:
    /**
     * @static
     * @method _onMouseDown
     * @param {MouseEvent} event
     * @private
     */
    TouchInput._onMouseDown = function(event) {
        if (event.button === 0) { 
            this._onLeftButtonDown(event);
        } else if (event.button === 1) { 
            this._onMiddleButtonDown(event);
        } else if (event.button === 2) { 
            this._onRightButtonDown(event);
        }
    };
     
    #2
  3. brandos

    brandos Veteran Veteran

    Messages:
    147
    Likes Received:
    31
    First Language:
    German


    Thank you but that's not really what i'm looking for.


    I'm looking for a way to have Left mouse button as example trigger "ok" or "shift".
     
    #3

Share This Page