I understand is as 2 inputs. A physical d-pad might have up to 8 inputs including the diagonals or 2 - direction and angle.
The d pad is 4 buttons, even Godot treats it as so.
I'm not that into Godot right now, I just started on it and I have no idea how it treats d-pads. I gave a physical d-pad as an example.