forked from MoonsideGames/MoonWorks
add MouseButton.Button lookup
parent
2ae116c72b
commit
56bab545ba
|
@ -99,6 +99,11 @@ namespace MoonWorks.Input
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MouseButton Button(MouseButtonCode buttonCode)
|
||||||
|
{
|
||||||
|
return CodeToButton[buttonCode];
|
||||||
|
}
|
||||||
|
|
||||||
public ButtonState ButtonState(MouseButtonCode buttonCode)
|
public ButtonState ButtonState(MouseButtonCode buttonCode)
|
||||||
{
|
{
|
||||||
return CodeToButton[buttonCode].State;
|
return CodeToButton[buttonCode].State;
|
||||||
|
|
Loading…
Reference in New Issue