with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface