From 9ae73f7bb53e7e4052cf99371f850e9ee001fad6 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 30 Dec 2019 15:28:24 +0100 Subject: Document how to distinguish emulated mouse events from physical ones Mouse events emulated from a touchscreen will always have a device ID of -1. --- doc/classes/InputEvent.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/InputEvent.xml b/doc/classes/InputEvent.xml index d412ce09e2..ccb5c5400a 100644 --- a/doc/classes/InputEvent.xml +++ b/doc/classes/InputEvent.xml @@ -111,6 +111,7 @@ The event's device ID. + [b]Note:[/b] This device ID will always be [code]-1[/code] for emulated mouse input from a touchscreen. This can be used to distinguish emulated mouse input from physical mouse input. -- cgit v1.2.3