def _get_switchval(self): switch = RC._get_axis(self, self.switch_axis) return 0 if switch < -.5 else (1 if switch < +.5 else 2)
def _get_switchval(self): switch = RC._get_axis(self, self.switch_axis) return 2 if switch < -.5 else (0 if switch > +.5 else 1)