Fix fake null-motion mouse event flood

This commit also improves a bit the code quality by making the intent of fake events (and themselves) more explicit.

Fixes #26460.
This commit is contained in:
Pedro J. Estébanez
2019-03-09 22:03:27 +01:00
parent 86d6a72c97
commit f757460ec8
5 changed files with 28 additions and 17 deletions

View File

@ -33,6 +33,9 @@
#include "core/input_map.h"
#include "core/os/keyboard.h"
const int InputEvent::DEVICE_ID_TOUCH_MOUSE = -1;
const int InputEvent::DEVICE_ID_INTERNAL = -2;
void InputEvent::set_device(int p_device) {
device = p_device;
}