A device for operating a computer or a computer-assisted device, comprising a first arrangement (1, 2, 3) which is used to determine the position of an object (4) on an axis (5), characterized in that means (17) are provided in order to determine the distance of the object (4) from the axis (5).