SFV and logitech f310 compatibility

I just installed sfv but somehow it doesnt recognize my controller logitech f310. Any solution for this.?

If there is a switch on the back of the controller where there is an X and a D.

It will only work if it is set to X. X-input.