I've actually never tried this out, but I think it's correct. If both IFs are true then just use the code you would normally use when pressing left on the D-Pad, although you could also use the absolute value of CPX in your X movement code to allow the player to move at different speeds when the stick is held at different positions. Just note that when doing this things get a bit more complicated.