cmhw: rework the glove mode switch

I'm not going to hurt anyone's feelings, but it doesn't seem like
bagyusz's patch ever worked.
Instead, I'm completely changing the code to make it working(and maybe
more understandable for the human beings)