1. A method of controlling a system ( 1 ) comprising one or more components (C 1 , C 2 ,. .. , C n ), which method comprises the steps of aiming a pointing device ( 2 ) comprising a camera ( 3 ) in the direction of one or more of the components (C 1 , C 2 ,. .. , C n ); generating image data ( 4 ) of a target area (A) aimed at by the pointing device ( 2 ), encompassing at least part of one or more of the components (C 1 , C 2 ,. .. , C n ); analysing the image data ( 4 ) to determine position information (P) pertaining to the position of the user ( 5 ) relative to one or more of the components (C 1 , C 2 ,. .. , C n ) at which the pointing device ( 2 ) is being aimed and/or to relative positions of the components (C 1 , C 2 ,. .. , C n ); controlling the system ( 1 ) according to the position information (P).