Was that the D.C. vs. Heller case? I didn't read through all of this, but seems to be what you're describing...The supreme court has issued some fairly strong opinions on this topic.
Its been a while since I read one.
As best I recall, about 15 or 20 years ago.
It was back in the days when every gun had to have a gun lock included with it if it was sold new.
As I recall, the case was about a court bailiff in Washington DC that used a personal firearm to defend himself in an off duty situation in his home.
At the time DC required personal firearms to be stored unloaded and locked, but his was not prior to having to defend himself.
A court officer allowed by the state to openly carry a gun in a court house, and he was charged for having an unlocked loaded gun in his home. Legal possession of the gun was not an issue. The situation was discovered when he used the gun in self defense. The NRA wanted a case like it, and helped drive it to the supreme court.
The court affirmed the second amendment is an individual right, not the right of the state or of a local government.
The court said clause regarding a militia is an example of how the right can be used, but did not limit an individuals right or require them to be part of an recognized group. The same ruling also stated that we have a right to defend ourselves and that a firearm is a legitimate means of defending ourselves.
I wish I could remember the exact citation, but both the majority and minority opinions were well thought out and worth reading. Its some of the most well considered logic on what the second amendment means I have ever read. Its also written by the people who have the authority to interpret it.
Read the real thing, not the soundbites and quotes out of context put forward by spin doctors on both sides of the question.