Add Buttons.None to Buttons.#4618
Add Buttons.None to Buttons.#4618BaseCrosser wants to merge 2 commits intoMonoGame:developfrom BaseCrosser:develop
Conversation
|
@KonajuGames @dellis1972 - If you think this is ok... we can merge it after the 3.5 release. |
|
This PR only adds a button, it doesn't actually connect it with the code... It will always be false. |
|
My thinking was the intent was for something like: But I think what @cra0zy is getting at is that the input API never returns the I guess it means you can now do |
|
|
|
My intent was to have a empty value in Buttons like there is in Keys. |
|
The problem is that |
|
It would be a way of removing a key binding without have an accompanying bool to say it has been bound to a button, or having to typecast |
It would need a special case for Buttons.None. This gets a little messy, with potential for adding bugs. |
|
And what if I just change the value of None to 3. Then it wouldn't be 0 anymore and this should work. None of the buttons on the game pad triggered it so I assume it is working then. Edit: 3 is equal to DpadUp and DpadDown together. Since those 2 can't be triggered at the same time this should work. |
|
A "3" are two different buttons at the same time, the ones with value 1 and 2 concretelly. |
|
The buttons with value 1 and 2 are DpadUp and DpadDown. |
|
I will close this now so that somebody else can add it correctly. |
Issue #4617