I don't recommend getting a Logitech gamepad if you're using either Windows 8 or Windows 8.1.
I purchased the F710 and had a hell of a time getting it to work on 8.1, and after everything it still only partially worked. Whilst searching, I found a lot of people having similar issues with both the F710 & the F310 on Win8/8.1. If you're using Win7 you should be fine though.
If you're worried about having compatibility issues, I'd really just stick with an Xbox controller (Or Playstation, if you know how to set them up).