An input mechanism (31) includes a first pivoting section (33) that is pivotable with a first axis (X) as a rotational center, a second pivoting section (35) that is pivotable with respect to the first pivoting section (33) with a second axis (Y) as a rotational center crossing the first axis (X), a first link (34) fixed to the first pivoting section (33) and connected to the second pivoting section (35) such that the second pivoting section (35) is pivotable with the second axis (Y), a second link (36) fixed to the second pivoting section (35), an advance/retreat input section (37) connected to the second link (36) and thereby enable an advance/retreat operation along a third axis (L) passing through an intersection between the first axis (X) and the second axis (Y) as an advance/retreat axis, and a sensor unit (40) configured to determine a rotation angle of the first axis (X), a rotation angle of the second axis (Y) and an advance/retreat movement distance of the advance/retreat input section (37).