add MouseButton.Button lookup

remotes/1695061714407202320/main
cosmonaut 2023-06-09 18:15:15 -07:00
parent 2ae116c72b
commit 56bab545ba
1 changed files with 5 additions and 0 deletions

View File

@ -99,6 +99,11 @@ namespace MoonWorks.Input
}
}
public MouseButton Button(MouseButtonCode buttonCode)
{
return CodeToButton[buttonCode];
}
public ButtonState ButtonState(MouseButtonCode buttonCode)
{
return CodeToButton[buttonCode].State;