This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Threading.Tasks; | |
| using UnityEditor; | |
| using UnityEditorInternal; | |
| using UnityEngine; | |
| namespace Naninovel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Instantiate this class and pass it a func name or a Function Object | |
| ; The specified function will be called with the delta move for the X and Y axes | |
| ; Normally, there is no windows message "mouse stopped", so one is simulated. | |
| ; After 10ms of no mouse movement, the callback is called with 0 for X and Y | |
| Class MouseDelta { | |
| State := 0 | |
| __New(callback){ | |
| ;~ this.TimeoutFn := this.TimeoutFunc.Bind(this) | |
| this.MouseMovedFn := this.MouseMoved.Bind(this) |