An apparatus including a first computer for detecting a scrolling event is provided. The method comprises steps of acquiring images by a camera through the windscreen, camera preferably focused at infinite, retrieving the contours of the spots present on the acquired images, and realizing the histogram of the widths of contours of the spots. The memory blocks and the control logic blocks are configured to emulate a plurality of memory types.