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