CODE
if( myGamePad.wButtons & XINPUT_GAMEPAD_DPAD_UP )
This code works to check if up and back was pressed:
CODE
if(( myGamePad.wButtons & XINPUT_GAMEPAD_DPAD_UP )&& (myGamePad.wButtons & XINPUT_GAMEPAD_BACK ))
So in theory if I change it to check just for the back button being pressed, it should work. Wrong, it automatically executes like the button is being pressed. Here is the code for that:
CODE
if( myGamePad.wButtons & XINPUT_GAMEPAD_BACK )
How would I get it to wait until the back button was pressed?