module Input [:press?, :trigger?, :repeat?].each do |name| old = method(name) define_singleton_method name do |sym| case sym when :B, 12 old.call || 鼠标右键被按下? when :C, 13 old.call || 鼠标左键被按下? else old.call end end end end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |