Fix cursor blinking in integrated GPUs

Optimization for Input::set_custom_mouse_cursor when used inside
_process function. (Avoids cursor blinking in low end devices)
This commit is contained in:
Guilherme Felipe 2019-07-08 17:37:18 -03:00
parent 5e495750a3
commit a9a0d0fb15
8 changed files with 75 additions and 0 deletions

View file

@ -52,6 +52,7 @@ class OS_JavaScript : public OS_Unix {
Ref<InputEventKey> deferred_key_event;
CursorShape cursor_shape;
String cursors[CURSOR_MAX];
Map<CursorShape, Vector<Variant> > cursors_cache;
Point2 touches[32];
Point2i last_click_pos;