KyleRansford
Member
I've been looking for a way to draw the number of a pressed button on a controller to the GUI and I found this this bit of code, and have it in a Draw GUI Event, but it doesn't draw anything on the GUI. I'm using an Xbox One Controller to test it out.
Am I just entering the wrong variable for it to draw?
Basically, what I'm wanting to do is, when the gp_face1 button is pressed (or any other button), draw what the number for it is on the GUI.
GML:
for (var i = gp_face1; i < gp_axisrv; i++) {
if gamepad_button_check(0, i) return i;
}
return false;
draw_text(500, 500, string(i));
Basically, what I'm wanting to do is, when the gp_face1 button is pressed (or any other button), draw what the number for it is on the GUI.
Last edited: