godotengine / godotengine/godot-csharp-visualstudio

IsMouseButtonPressed should allow ButtonList

Open
#14 0 comments 0 reactions 1 assignee Claimed by @neikeq View on GitHub
enhancement
Dominant language
C#
Stars
276
Forks
27
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.