Actually, the whole amendment reads:
"A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed."
Good luck getting the true intention out of that, it's just not written clearly enough. The legal system generally goes with the "collective rights" interpretation that focuses on "the people" (= states) and not individuals. It should have been written more clearly either way.
There's another weird aspect, where "keep and bear" doesn't imply anything about "procure". Which means restrictions on gun manufacturers, gun retailers, gun dealers, private sales, etc... can and have been enacted. Do they infringe on the 2nd amendment? Not technically. In practice, they infringe on our ability to live by the 2nd amendment though.
I am pro 2nd amendment, but cripes, it was just not written well or thoroughly. No wonder it's a constant debate. Blame the founding fathers.