An electronic device for determining a first positional information and a second positional information regarding a user input object, such as at least one user hand or at least one stylus, the electronic device comprising: a touch-sensitive surface, contact-free detection means comprising capacitive sensing means, which in turn comprise: electric field generation means for generating an electric field that is static or quasi-static: electric field detection means (301..304) for detecting changes of the electric field caused by the user input object, wherein the electric field detection means are separate means or an integral part of the electric field generation means; and controller means (120, 122; 124) that are operatively connected to the touch-sensitive surface and to the contact-free detection means, wherein the controller means comprise a touch detection controller and a gesture recognition controller; wherein the first positional information comprises a first position that depends on where the user input object contacts the touch-sensitive surface, and wherein the second positional information comprises a second position that depends on the spatial configuration of the user input object with regard to the touch-sensitive surface, wherein the controller means are adapted for determining and outputting the first positional information via the touch-sensitive surface and the second positional information via the contact free detection means, characterised in that the controller means are adapted for simultaneously determining the first positional information and the second positional information using time-division-multiplexing and/or frequency-division-multiplexing; wherein the gesture recognition controller is adapted for identifying a gesture as belonging to a predefined gesture category from the first positional information and the second positional information, wherein the gesture recognition controller is further configured to record and identify the gesture performed by the user input object while the input object touches the touch sensitive surface and while the first positional information remains substantially constant and the second positional information moves on a trajectory; and wherein the electronic device is adapted for transitioning from a first state into a second state when or after the gesture is identified as belonging to the predefined gesture category by the gesture recognition module. a touch-sensitive surface, contact-free detection means comprising capacitive sensing means, which in turn comprise: electric field generation means for generating an electric field that is static or quasi-static: electric field detection means (301..304) for detecting changes of the electric field caused by the user input object, wherein the electric field detection means are separate means or an integral part of the electric field generation means; and controller means (120, 122; 124) that are operatively connected to the touch-sensitive surface and to the contact-free detection means, wherein the controller means comprise a touch detection controller and a gesture recognition controller; wherein the first positional information comprises a first position that depends on where the user input object contacts the touch-sensitive surface, and wherein the second positional information comprises a second position that depends on the spatial configuration of the user input object with regard to the touch-sensitive surface, wherein the controller means are adapted for determining and outputting the first positional information via the touch-sensitive surface and the second positional information via the contact free detection means, characterised in that the controller means are adapted for simultaneously determining the first positional information and the second positional information using time-division-multiplexing and/or frequency-division-multiplexing; wherein the gesture recognition controller is adapted for identifying a gesture as belonging to a predefined gesture category from the first positional information and the second positional information, wherein the gesture recognition controller is further configured to record and identify the gesture performed by the user input object while the input object touches the touch sensitive surface and while the first positional information remains substantially constant and the second positional information moves on a trajectory; and wherein the electronic device is adapted for transitioning from a first state into a second state when or after the gesture is identified as belonging to the predefined gesture category by the gesture recognition module.