A system comprising: a capacitive or resistive two-dimensional, 2D, touch detection system (180, 190) comprising a touch sensor panel, operable to be activated and de-activated; an additional three-dimensional, 3D, capacitive sensor system (110, 120, 130, 140, 150, 160, 170) configured to detect 3D gestures and comprising a transmission electrode and a plurality of receive electrodes (120, 130, 140, 150, 160), wherein the transmission electrode is configured to receive an alternating signal to generate a quasi-static alternating electric field and wherein at least some of the plurality of receive electrodes (120, 130, 140, 150) are used to determine attenuation of the electric field caused by an object entering the electric field to determine a 3D position, wherein the additional 3D capacitive sensor system (110, 120, 130, 140, 150, 160, 170) is in communication with the capacitive or resistive 2D touch detection system (180, 190); wherein the capacitive or resistive 2D touch detection system (180, 190) and the additional 3D capacitive sensor system (110, 120, 130, 140, 150, 160, 170) are not operated simultaneously due to interference; wherein the additional 3D capacitive sensor system (110, 120, 130, 140, 150, 160, 170) is configured to determine whether a touch event has occurred or is about to occur, and to activate the capacitive or resistive 2D touch detection system (180, 190) if a touch event has occurred or is about to occur, wherein the 3D capacitive sensor system (110, 120, 130, 140, 150, 160, 170) is configured to run a touch detection algorithm on a signal from a touch detection electrode (RX4, 160, 190), which covers an area used by the capacitive or resistive 2D touch detection system (180, 190), wherein a difference signal of subsequent samples from the touch detection electrode (160; 190) is generated and evaluated over time, and wherein the 3D capacitive sensor system (110, 120, 130, 140, 150, 160, 170) is configured to determine whether a touch occurred by evaluating whether the difference signal first crosses a positive threshold and when the difference signal starts decreasing again, fitting a line onto a negative slope of the difference signal to determine a time t 0 of a potential zero crossing of the difference signal and determining whether the difference signal is still positive at the time t 0 to determine that a touch occurred. a capacitive or resistive two-dimensional, 2D, touch detection system (180, 190) comprising a touch sensor panel, operable to be activated and de-activated; an additional three-dimensional, 3D, capacitive sensor system (110, 120, 130, 140, 150, 160, 170) configured to detect 3D gestures and comprising a transmission electrode and a plurality of receive electrodes (120, 130, 140, 150, 160), wherein the transmission electrode is configured to receive an alternating signal to generate a quasi-static alternating electric field and wherein at least some of the plurality of receive electrodes (120, 130, 140, 150) are used to determine attenuation of the electric field caused by an object entering the electric field to determine a 3D position, wherein the additional 3D capacitive sensor system (110, 120, 130, 140, 150, 160, 170) is in communication with the capacitive or resistive 2D touch detection system (180, 190); wherein the capacitive or resistive 2D touch detection system (180, 190) and the additional 3D capacitive sensor system (110, 120, 130, 140, 150, 160, 170) are not operated simultaneously due to interference; wherein the additional 3D capacitive sensor system (110, 120, 130, 140, 150, 160, 170) is configured to determine whether a touch event has occurred or is about to occur, and to activate the capacitive or resistive 2D touch detection system (180, 190) if a touch event has occurred or is about to occur, wherein the 3D capacitive sensor system (110, 120, 130, 140, 150, 160, 170) is configured to run a touch detection algorithm on a signal from a touch detection electrode (RX4, 160, 190), which covers an area used by the capacitive or resistive 2D touch detection system (180, 190), wherein a difference signal of subsequent samples from the touch detection electrode (160; 190) is generated and evaluated over time, and wherein the 3D capacitive sensor system (110, 120, 130, 140, 150, 160, 170) is configured to determine whether a touch occurred by evaluating whether the difference signal first crosses a positive threshold and when the difference signal starts decreasing again, fitting a line onto a negative slope of the difference signal to determine a time t 0 of a potential zero crossing of the difference signal and determining whether the difference signal is still positive at the time t 0 to determine that a touch occurred.