Advertisement
Maliki79

DisableTouchV1.1

Jan 6th, 2025 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TouchInput._setupEventHandlers = function() {
  2. /*
  3.     document.addEventListener('mousedown', this._onMouseDown.bind(this));
  4.     document.addEventListener('mousemove', this._onMouseMove.bind(this));
  5.     document.addEventListener('mouseup', this._onMouseUp.bind(this));
  6.     document.addEventListener('wheel', this._onWheel.bind(this));
  7.     document.addEventListener('touchstart', this._onTouchStart.bind(this));
  8.     document.addEventListener('touchmove', this._onTouchMove.bind(this));
  9.     document.addEventListener('touchend', this._onTouchEnd.bind(this));
  10.     document.addEventListener('touchcancel', this._onTouchCancel.bind(this));
  11.     document.addEventListener('pointerdown', this._onPointerDown.bind(this));
  12. */
  13.     };
  14.    
  15. ConfigManager.touchUI = false;
  16.  
  17. Window_Options.prototype.addGeneralOptions = function() {
  18.     this.addCommand(TextManager.alwaysDash, "alwaysDash");
  19.     this.addCommand(TextManager.commandRemember, "commandRemember");
  20.     //this.addCommand(TextManager.touchUI, "touchUI");
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement