Mouse buttons

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.
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.



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);
    }
};
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.



/**
* @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);
}
};



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".

Original thread: https://forums.rpgmakerweb.com/threads/mouse-buttons.72166/