Пример #1
0
 public EmulatedDigitizerDriver(EmulatorWindow window, int width, int height)
 {
     _window    = window;
     Width      = width;
     Height     = height;
     Calibrator = new TouchscreenCalibrator
     {
         Calibration = BuiltinStylusCalibrations.ReMarkableMarker
     };
 }
Пример #2
0
 /// <summary>
 ///     Creates a new <see cref="HardwareDigitizerDriver" />
 /// </summary>
 /// <param name="devicePath">The device event stream to poll for new events</param>
 /// <param name="width">The virtual width of the device</param>
 /// <param name="height">The virtual height of the device</param>
 public HardwareDigitizerDriver(string devicePath, int width, int height) : base(devicePath)
 {
     Width        = width;
     Height       = height;
     ButtonStates = new Dictionary <DigitizerEventKeyCode, ButtonState>();
     Calibrator   = new TouchscreenCalibrator
     {
         Calibration = BuiltinStylusCalibrations.ReMarkableMarker
     };
 }