godot-csharp-visualstudio
godot-csharp-visualstudio copied to clipboard
IsMouseButtonPressed should allow ButtonList
In order to use such methods for inputs it requires an int type. However you can't use ButtonList enum.
Meaning you have to do this instead.
Input.IsMouseButtonPressed((int)ButtonList.Left)
Simply suggest to have an override on all related methods to allow ButtonList ...
It can even simply do the conversion, just as long the developer doesn't explicit need to make the cast.