A method for controlling an electronic device includes providing as part of the electronic device a display screen for displaying content and a sensing
assembly including at least one photoreceiver and a plurality of phototransmitters, wherein each phototransmitter is positioned to emit
infrared light away from the electronic device about a corresponding central transmission axis, wherein each central transmission axis is oriented in a different direction with respect to the others. Emission of
infrared light by each of the phototransmitters is controlled during each of a plurality of time periods as an external object moves in a first specified pattern of movement and then moves in a second specified pattern of movement which is offset from a generally centered position with respect to the sensing
assembly, and measured signals are generated. The measured signals are evaluated to identify the first specified pattern of movement of the object, to detect a reference offset location corresponding to an end of the first specified pattern of movement of the object, and to determine, for each of a group of time periods when the object is moving in the second specified pattern of movement, a corresponding location of the object during that time period. A centering operation is performed in response to the identification of the first specified pattern of movement, wherein the centering operation moves an indicator to an initial predetermined reference location on the display screen, wherein the predetermined reference location is then associated with the reference offset location; and sequential locations of the indicator on the display screen are controlled in accordance with the corresponding determined locations of the object relative to the reference offset location.