Patent attributes
A user interface for receiving input commands in a mobile terminal includes a display device for presenting visual information. Arrays of light sources and arrays of light detectors are arranged along respective first and second sides of the display device. Each array of light sources is configured to transmit light pulses over the display device, and each array of light detectors is configured to receive a part of the energy in the transmitted light pulses. A processing unit controls the light sources such that a light pulse is repeatedly transmitted from each source according to a predefined sequence. Based on an ambience light intensity and a measurement value registered by at least one light detector during transmission of light from the light source, the processing unit determines whether or not a light-obstructive object is present on the display device between a given light source and at least one light detector.