Beispiel #1
0
 public KeyboardDevice()
 {
     Code = DeviceCode.Create(this, DeviceType.Input.KEYBOARD)
            .RunsOnMainThread(true)
            .ConnectionType(DeviceConnectionType.SystemApi)
            .Build();
 }
Beispiel #2
0
 public MouseDevice()
 {
     Code = DeviceCode.Create(this, DeviceType.Input.MOUSE)
            .RunsOnMainThread(true)
            .ConnectionType(DeviceConnectionType.SystemApi)
            .Build();
 }
Beispiel #3
0
        public ExternalEventsDevice(IEventsRecorder recorder)
        {
            _recorder = recorder;

            Code = DeviceCode.Create(this, DeviceType.EXTERNAL_EVENTS.Code)
                   .ConnectionType(DeviceConnectionType.SystemApi)
                   .RunsOnMainThread(false)
                   .Build();
        }
Beispiel #4
0
        public EyeTrackerDevice(TrackerBrowser browser)
        {
            _config  = new EyeTrackerRecordingConfiguration();
            _browser = browser;

            Code = DeviceCode.Create(this, DeviceType.Physiological.EYETRACKER)
                   .RequiresCalibrationBeforeStart(true)
                   .ConnectionType(DeviceConnectionType.Port)
                   .RunsOnMainThread(false)
                   .Build();
        }
Beispiel #5
0
        public ScreenCastStreamerDevice(FFmpegStreamer streamer, IScreenCastStreamerConfiguration configuration)
        {
            _config          = configuration;
            _recordingConfig = new VideoStreamerRecordingConfiguration(configuration);

            _streamer = streamer;
            _streamer.ProcessExited += (_, e) => ConnectionError?.Invoke(this, new ConnectionException("Screencast process exited."));

            Code = DeviceCode.Create(this, DeviceType.Streaming.SCREENCAST)
                   .RunsOnMainThread(false)
                   .ConnectionType(DeviceConnectionType.Process)
                   .Build();
        }
Beispiel #6
0
        public VideoStreamerDevice(FFmpegStreamer streamer, IVideoStreamerConfiguration configuration)
        {
            _config          = configuration;
            _recordingConfig = new VideoStreamerRecordingConfiguration(configuration);

            _streamer = streamer;
            _streamer.ProcessExited += (_, __) => ConnectionError?.Invoke(this, new ConnectionException("Webcam video process exited."));

            Code = DeviceCode.Create(this, DeviceType.Streaming.WEBCAM_VIDEO)
                   .RunsOnMainThread(false)
                   .ConnectionType(DeviceConnectionType.Process)
                   .Build();
        }
Beispiel #7
0
 public DesignDevice(DeviceType deviceType)
 {
     Code = DeviceCode.Create(this, deviceType.Code).Build();
 }