diff --git a/src/Input/Mouse.cs b/src/Input/Mouse.cs index 90d7bc9e..008c5772 100644 --- a/src/Input/Mouse.cs +++ b/src/Input/Mouse.cs @@ -99,6 +99,11 @@ namespace MoonWorks.Input } } + public MouseButton Button(MouseButtonCode buttonCode) + { + return CodeToButton[buttonCode]; + } + public ButtonState ButtonState(MouseButtonCode buttonCode) { return CodeToButton[buttonCode].State;