This is charming, SomeGuy™ , however it is possible to push down more than one button at a time so more than one button should appear pressed in this case.
I wrote a full input reader sometime ago.
You are certainly welcome to look it over if you like.
There is a simpler one I wrote HERE:
That's done in only a few lines of code yet reads both player inputs. Player #1 and #2.
. . .
Here is very simple code indeed showing you how to read all the buttons on the regular joystick:
function _update() ?btn() end
Notice how when you press 2- or more buttons they are added together. Even the "P" is registered as a button and there is a method to disable regular PAUSE so you can use it is a key such as typing "P" .
Also try out the TAB key. Yes there is more than just U D L R O and X read with
[Please log in to post a comment]