I am so sorry to hear about your gentle giant. Even if it should not be feline dementia- that leg shaking symptom sounds like something in his brain is not ok
I hope he will be happy for as much as possible time to come.