Can' t get 8 direction swipe character input to work

I’m making a 3d mobile game where the main character runs automatically and the player swipes to change the direction the character is running. I figured out how to make the character run in 4 directions and tap to jump but am looking to expand and the character movement to allow it to also run diagonally. Attached is were I’ve gotten to so far. Please, if any one can help I’d be very grateful.

Thanks,

Andy