From 2588c052b39dbbb6a0b69c0b4802404a482c0bcb Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Tue, 2 Dec 2014 14:07:21 +0100 Subject: [PATCH] Handle input again. --- Perspex.Controls/Window.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Perspex.Controls/Window.cs b/Perspex.Controls/Window.cs index f0e03be3d7..eb39b37ff9 100644 --- a/Perspex.Controls/Window.cs +++ b/Perspex.Controls/Window.cs @@ -9,6 +9,7 @@ namespace Perspex.Controls using System; using System.Reactive.Linq; using Perspex.Input; + using Perspex.Input.Raw; using Perspex.Layout; using Perspex.Media; using Perspex.Platform; @@ -64,6 +65,7 @@ namespace Perspex.Controls this.impl.SetOwner(this); this.impl.Activated += this.HandleActivated; this.impl.Closed += this.HandleClosed; + this.impl.Input += this.HandleInput; Size clientSize = this.ClientSize = this.impl.ClientSize; this.dispatcher = Dispatcher.UIThread; @@ -127,6 +129,11 @@ namespace Perspex.Controls } } + private void HandleInput(object sender, RawInputEventArgs e) + { + this.inputManager.Process(e); + } + private void HandleLayoutNeeded() { this.dispatcher.InvokeAsync(this.LayoutPass, DispatcherPriority.Render);