File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,6 +145,10 @@ protected override void ConsumeState()
145145 else
146146 calcTarget = targetPos ;
147147 }
148+ else
149+ {
150+ OnEmit ( ) ;
151+ }
148152 }
149153
150154 protected override void UpdateState ( )
@@ -154,11 +158,9 @@ protected override void UpdateState()
154158 report . Position = Filter ( calcTarget ) / MillimeterScale ;
155159 report . Pressure = this . pressure ;
156160 State = report ;
157- }
158161
159- if ( PenIsInRange ( ) || State is not ITabletReport )
160- {
161- OnEmit ( ) ;
162+ if ( PenIsInRange ( ) )
163+ OnEmit ( ) ;
162164 }
163165 }
164166
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ protected override void ConsumeState()
3737 {
3838 if ( State is ITabletReport report )
3939 this . targetPos = new Vector3 ( report . Position , report . Pressure ) * mmScale ;
40+ else
41+ OnEmit ( ) ;
4042 }
4143
4244 protected override void UpdateState ( )
@@ -47,10 +49,10 @@ protected override void UpdateState()
4749 report . Position = new Vector2 ( newPoint . X , newPoint . Y ) ;
4850 report . Pressure = ( uint ) newPoint . Z ;
4951 State = report ;
50- }
5152
52- if ( PenIsInRange ( ) || State is not ITabletReport )
53- OnEmit ( ) ;
53+ if ( PenIsInRange ( ) )
54+ OnEmit ( ) ;
55+ }
5456 }
5557
5658 public Vector3 Filter ( Vector3 point )
You can’t perform that action at this time.
0 commit comments