这个需要加到哪里?是在那个手势里面修改还是另外做一个呢? |
添加: Window_Selectable.prototype.processWheel = function() { //是打开和活动的 if (this.isOpenAndActive()) { //临界值=20 var threshold = 20; //如果滚轮y >= 临界 if (TouchInput.wheelY >= threshold || TouchInput.Gesture(2) ) { this.scrollDown(); } //如果滚轮y <= -临界 if (TouchInput.wheelY <= -threshold || TouchInput.Gesture(8) ) { this.scrollUp(); } } }; 这个的话需要 TouchInput 添加手势 n方向 |
试了一下,好像不行啊 |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-2-18 05:49
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.