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 CodeToButton; - private IEnumerable 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();