public GestureDispatcher(Runtime nui, KeyboardInputProcessor keyboard, MouseInputProcessor mouse, Canvas mainTransformedSkeleton) { ConfigureLogManager(); handleRequests = new Semaphore(0, (int)SemaphoreConstants.MAX_CONCURRENT_REQUESTS); requestGestureDataSem = new Semaphore((int)SemaphoreConstants.MAX_CONCURRENT_REQUESTS, (int)SemaphoreConstants.MAX_CONCURRENT_REQUESTS); this.keyboardProcessor = keyboard; this.nuiRuntime = nui; this.mouseProcessor = mouse; this.tranformedSkeleton = mainTransformedSkeleton; dataQueue = new Queue<GestureData>(); this.drawSkeleton = new TransformedSkeletonDrawing(nui, mainTransformedSkeleton); GestureProcessorModule(); }
public SkeletalDataProcessor(Runtime nui, Canvas skeleton, KeyboardInputProcessor keyboard, MouseInputProcessor mouse, Canvas mainTransformedSkeleton) { ConfigureLogManager(); handleRequests = new Semaphore(0, (int)SemaphoreConstants.MAX_CONCURRENT_REQUESTS); requestSkeletalData = new Semaphore((int)SemaphoreConstants.MAX_CONCURRENT_REQUESTS, (int)SemaphoreConstants.MAX_CONCURRENT_REQUESTS); this.keyboardProcessor = keyboard; this.nuiRuntime = nui; this.skeletonCanvas = skeleton; this.transformedSkeleton = mainTransformedSkeleton; this.mouseInput = mouse; this.skeletalDrawingObject = new SkeletalDrawing(nui, skeleton); this.gestureDispatch = new GestureDispatcher(nui,keyboard, mouse, mainTransformedSkeleton); dataQueue = new Queue<SkeletalData>(); threadExit = false; skeletalProcessorThread = new Thread(SkeletalProcessorModule); skeletalProcessorThread.Name = "SkeletalProcessorThread"; skeletalProcessorThread.Start(); }
public OpenGlWindow(int width, int height, string title, OpenGlVersion openGlVersion) : base( width, height, GraphicsMode.Default, title, GameWindowFlags.Default, DisplayDevice.Default, openGlVersion.Major, openGlVersion.Minor, GraphicsContextFlags.Default) { _mouseInputProcessor = new MouseInputProcessor(this, new GuiToRelativeCoordinateTransformer()); var buttonUpEventEvaluator = new ButtonUpActionEvaluator(_mouseInputProcessor); _mouseInputObservable = new MouseInputObservable(buttonUpEventEvaluator); _keyboardInputObservable = new KeyboardInputObservable(_keyboardInputProcessor); _camera = new LookAtCamera(); _lodCamera = new LookAtCamera(); }
public FreeCameraSystem(KeyboardInputProcessor keyboardInputProcessor, MouseInputProcessor mouseInputProcessor, ICamera camera) { _mouseInputProcessor = mouseInputProcessor; _camera = camera; _keyboardInputProcessor = keyboardInputProcessor; }
public ButtonUpActionEvaluator(MouseInputProcessor mouseInputProcessor) : base(mouseInputProcessor) { ButtonEvaluator = MouseInputProcessor.WasButtonReleased; }
public ButtonDownActionEvaluator(MouseInputProcessor mouseInputProcessor) : base(mouseInputProcessor) { ButtonEvaluator = MouseInputProcessor.WasButtonPressed; }
public OpentkTrackballCameraControls(MouseInputProcessor mouseInputProcessor, ITrackballCamera trackballCamera) { _mouseInputProcessor = mouseInputProcessor; _trackballCamera = trackballCamera; }