Patent ID: 8106733

Claim:
A switch comprising: a detection portion that contains a magnetic-field-sensing element and a first attraction member, said first attraction member generating a magnetically attracting force; and an operation portion that contains a magnet, wherein the first attraction member generates a magnetically attracting force between the operation portion and the detection portion; and wherein when the operation portion is operated with the operation portion being attracted by the first attraction member, the detection portion generates a switching signal based on an output of the magnetic-field-sensing element in response to an operation which is applied to the operation portion; wherein the detection portion generates a switching signal based on an output of the magnetic-field-sensing element; wherein the operation portion has a disk configuration and is configured to rotatably spin within a recess of the detection portion, and when the operation portion is operated with the operation portion being attracted by the first attraction member, the operation portion rotates on a center of action by the magnetically attracting force as its revolution axis, and wherein the operation portion fits completely within the recess of the detection portion such that a top surface of the operation portion is co-planar with a top surface of the detection portion adjacent the recess.