File tree Expand file tree Collapse file tree
Source/Assets/TouchScript/Scripts/InputSources/InputHandlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,15 +217,15 @@ public bool UpdateInput()
217217 break ;
218218 case State . StationaryFake :
219219 if ( buttons != newButtons ) updateButtons ( buttons , newButtons ) ;
220- if ( ( newButtons & Pointer . PointerButtonState . AnyButtonPressed ) != 0 )
221- {
222- if ( Input . GetKey ( KeyCode . LeftControl ) && mousePointPos != pos )
223- {
224- fakeMousePointer . Position += ( remappedPos - mousePointer . Position ) ;
225- updatePointer ( fakeMousePointer ) ;
226- }
227- }
228- if ( fakeTouchReleased ( ) )
220+ if ( ( newButtons & Pointer . PointerButtonState . AnyButtonPressed ) != 0 )
221+ {
222+ if ( Input . GetKey ( KeyCode . LeftControl ) && mousePointPos != pos )
223+ {
224+ fakeMousePointer . Position += ( remappedPos - mousePointer . Position ) ;
225+ updatePointer ( fakeMousePointer ) ;
226+ }
227+ }
228+ if ( fakeTouchReleased ( ) )
229229 {
230230 stateMouse ( ) ;
231231 }
You can’t perform that action at this time.
0 commit comments