From ca61e94b13ad26168b247d29a9b87691c5e23011 Mon Sep 17 00:00:00 2001
From: cosmonaut <evan@moonside.games>
Date: Tue, 13 Dec 2022 15:13:43 -0800
Subject: [PATCH] optimize mouse update

---
 src/Input/Mouse.cs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/Input/Mouse.cs b/src/Input/Mouse.cs
index 9826279..f92d3b5 100644
--- a/src/Input/Mouse.cs
+++ b/src/Input/Mouse.cs
@@ -43,8 +43,6 @@ namespace MoonWorks.Input
 
 		private readonly Dictionary<MouseButtonCode, MouseButton> CodeToButton;
 
-		private IEnumerable<MouseButton> Buttons => CodeToButton.Values;
-
 		public Mouse()
 		{
 			LeftButton = new MouseButton(this, MouseButtonCode.Left, SDL.SDL_BUTTON_LMASK);
@@ -78,7 +76,7 @@ namespace MoonWorks.Input
 			Wheel = WheelRaw - previousWheelRaw;
 			previousWheelRaw = WheelRaw;
 
-			foreach (var button in Buttons)
+			foreach (var button in CodeToButton.Values)
 			{
 				button.Update();