godot-csharp-visualstudio icon indicating copy to clipboard operation
godot-csharp-visualstudio copied to clipboard

IsMouseButtonPressed should allow ButtonList

Open NickersWeb opened this issue 5 years ago • 0 comments

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.

NickersWeb avatar Oct 24 '20 10:10 NickersWeb