File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -284,17 +284,6 @@ private void OnDeviceEvent(IXI2Client client, ParsedDeviceEvent ev)
284
284
// As https://www.kernel.org/doc/html/latest/input/multi-touch-protocol.html says, using `screenBounds.Width` is not accurate enough.
285
285
touchMajor = ( touchMajorValue - touchMajorXIValuatorClassInfo . Min ) /
286
286
( touchMajorXIValuatorClassInfo . Max - touchMajorXIValuatorClassInfo . Min ) * screenBounds . Width ;
287
-
288
- var windowScreenWidth = 0d ;
289
- var isSameAsTouchScreen = false ;
290
- if ( client is IWindowImpl windowImpl )
291
- {
292
- var windowScreen = _platform . X11Screens . ScreenFromWindow ( windowImpl ) ;
293
- isSameAsTouchScreen = windowScreen == screen ;
294
- windowScreenWidth = windowScreen ? . Bounds . Width ?? windowScreenWidth ;
295
- }
296
-
297
- Console . WriteLine ( $ "Position={ ev . Position . X : 0.00} ,{ ev . Position . Y : 0.00} ; TouchMajor={ touchMajorValue : 0.00} ;Max={ touchMajorXIValuatorClassInfo . Max : 0.00} ;Min={ touchMajorXIValuatorClassInfo . Min : 0.00} ;ScreenWidth={ screenBounds . Width } ;TouchWidth={ touchMajor } ; IsSameAsTouchScreen={ isSameAsTouchScreen } ; WindowScreenWidth={ windowScreenWidth } \r \n ") ;
298
287
}
299
288
}
300
289
@@ -306,8 +295,6 @@ private void OnDeviceEvent(IXI2Client client, ParsedDeviceEvent ev)
306
295
{
307
296
touchMinor = ( touchMinorValue - touchMinorXIValuatorClassInfo . Min ) /
308
297
( touchMinorXIValuatorClassInfo . Max - touchMinorXIValuatorClassInfo . Min ) * screenBounds . Height ;
309
-
310
- Console . WriteLine ( $ "TouchMinor={ touchMinorValue : 0.00} ;Max={ touchMinorXIValuatorClassInfo . Max : 0.00} ;Min={ touchMinorXIValuatorClassInfo . Min : 0.00} ;ScreenHeight={ screenBounds . Height } ;TouchWidth={ touchMajor } ;r\n ") ;
311
298
}
312
299
}
313
300
You can’t perform that action at this time.
0 commit comments