From 15f5abe1e1d600aee00eb081327f4ed1032188b2 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sun, 4 May 2014 08:34:13 +0200 Subject: [PATCH] [Platform] Remove lambdas --- Source/OpenTK/Platform/LegacyInputDriver.cs | 23 ++++----------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/Source/OpenTK/Platform/LegacyInputDriver.cs b/Source/OpenTK/Platform/LegacyInputDriver.cs index 96596e54..50d00deb 100644 --- a/Source/OpenTK/Platform/LegacyInputDriver.cs +++ b/Source/OpenTK/Platform/LegacyInputDriver.cs @@ -61,25 +61,10 @@ namespace OpenTK.Platform dummy_keyboard_list.Add(keyboard); // Hook mouse events - window.MouseDown += (sender, e) => - { - mouse[e.Button] = true; - }; - - window.MouseUp += (sender, e) => - { - mouse[e.Button] = false; - }; - - window.MouseMove += (sender, e) => - { - mouse.Position = e.Position; - }; - - window.MouseWheel += (sender, e) => - { - mouse.WheelPrecise = e.Mouse.Scroll.Y; - }; + window.MouseDown += mouse.HandleMouseDown; + window.MouseUp += mouse.HandleMouseUp; + window.MouseMove += mouse.HandleMouseMove; + window.MouseWheel += mouse.HandleMouseWheel; // Hook keyboard events window.KeyDown += (sender, e) =>