Unlike some amendments within the bill of rights, the 2nd amendment does not contain the words "Congress" or any other language limiting its effectivity to the federal government. So while the courts have used the 14th amendment to incorporate other restrictions against the federal government onto the states, such incorporation of the 2nd amendment is not even necessary. What part of "SHALL NOT BE INFRINGED" is ambiguous to you?
Or the word "states."