A position sensor adapted to detect a position of an operation member moved along an operation path extending in three different directions from a specific position, the position sensor comprising: a single detection subject adapted to move in cooperation with the operation member between the branching position and a first position, a second position, and a third position that are located in three directions from a branching position corresponding to the specific position; and detection elements that are capable of detecting the detection subject, wherein each of the detection elements is adapted to generate an output indicating detection of the detection subject, the detection elements are laid out so that movement of the detection subject from the branching position to any one of the first to third positions changes the outputs of at least two of the detection elements from a state indicating detection of the detection subject to a state indicating non-detection of the detection subject, changes the output of at least another one of the detection elements from a state indicating non-detection of the detection subject to a state indicating detection of the detection subject, and keeps the output of a further one of the detection elements unchanged, the detection elements are also laid out so that movement of the detection subject from the branching position to any one of the first to third positions changes the outputs of at least three of the detection elements, the at least three of the detection elements of which the outputs change are in a combination that differs for each of the first to third positions, the single detection subject is a single magnet, the single magnet includes a plate surface that is arranged to oppose the detection elements, and the plate surface of the single magnet has a single polarity. a single detection subject adapted to move in cooperation with the operation member between the branching position and a first position, a second position, and a third position that are located in three directions from a branching position corresponding to the specific position; and detection elements that are capable of detecting the detection subject, wherein each of the detection elements is adapted to generate an output indicating detection of the detection subject, the detection elements are laid out so that movement of the detection subject from the branching position to any one of the first to third positions changes the outputs of at least two of the detection elements from a state indicating detection of the detection subject to a state indicating non-detection of the detection subject, changes the output of at least another one of the detection elements from a state indicating non-detection of the detection subject to a state indicating detection of the detection subject, and keeps the output of a further one of the detection elements unchanged, the detection elements are also laid out so that movement of the detection subject from the branching position to any one of the first to third positions changes the outputs of at least three of the detection elements, the at least three of the detection elements of which the outputs change are in a combination that differs for each of the first to third positions, the single detection subject is a single magnet, the single magnet includes a plate surface that is arranged to oppose the detection elements, and the single detection subject is a single magnet, the single magnet includes a plate surface that is arranged to oppose the detection elements, and the plate surface of the single magnet has a single polarity.