I am working on my sketch and facing another problem.
My code is using 10 inputs in total from digital pin 3-12. All of them are set to pinMode INPUT_PULLUP and connected to external buttons on a gaming controller. All of them provide 1.8V, so with pinMode INPUT_PULLUP the state is 1 when not pressed. When one of them is pressed the voltage does down to 0V and inputState 0, which is exactly what I want.
The only problem now is, that 2 of the 10 inputs are always 0, even when not pressed. Something with the internal pull-up is not working. I could use analogRead, but I am wondering the 2 inputs are behaving different then the others, although they provide same voltage when pressed and when not pressed.
You were lucky that you got 8 to work but connecting your gaming controller to a pull-up may damage your controller and/or arduino.
You will need to connect all your buttons to analog inputs and check to see if the voltage is greater or less than 0.9V