implement DirectionSelector to support input direction in mobile mode