You didn't read that Heller case very well because it cited an 1846 ruling from Nunn: "perfectly captured the way in which the operative clause of the Second amendment furthered the purpose announced in the prefatory clause"
1846-"The right of the people to bear arms shall not be infringed." The right of the whole people, old and young, men, women and boys, and not militia only, to keep and bear arms of every description, not such merely as are used by the militia.
does it follow that because the people refused to delegate to the general government the power to take from them the right to keep and bear arms, that they designed to rest it in the State governments? Is this a right reserved to the States or to themselves? Is it not an unalienable right, which lies at the bottom of every free government? We do not believe that, because the people withheld this arbitrary power of disfranchisement from Congress, they ever intended to confer it on the local legislatures.
Further:
1857-It would give to persons of the negro race, ... the right to enter every other State whenever they pleased, ... the full liberty of speech in public and in private upon all subjects upon which its own citizens might speak; to hold public meetings upon political affairs, and to keep and carry arms wherever they went.
1875-The second amendment declares that it shall not be infringed, but this, as has been seen, means no more than that it shall not be infringed by Congress.
1886 - We think it clear that there are no sections under consideration, which only forbid bodies of men to associate together as military organizations, or to drill or parade with arms in cities and towns unless authorized by law, do not infringe the right of the people to keep and bear arms.
1939- These show plainly enough that the Militia comprised all males physically capable of acting in concert for the common defense. 'A body of citizens enrolled for military discipline.' And further, that ordinarily when called for service these men were expected to appear bearing arms supplied by themselves and of the kind in common use at the time.
1968-Such is the character of the privileges and immunities spoken of in the second section of the fourth article of the Constitution ...the personal rights guarantied and secured by the first eight amendments of the Constitution; such as the freedom of speech and of the press; the right of the people peaceably to assemble and petition the Government for a redress of grievances, a right appertaining to each and all the people; the right to keep and to bear arms