From 5e4e4967fec73d1727031eb6f57d6c83250af27b Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Fri, 22 Apr 2022 17:39:12 +0100 Subject: Use Input::push_input for tests plus extra mouse testing --- core/input/input.cpp | 4 ++++ core/input/input.h | 1 + 2 files changed, 5 insertions(+) (limited to 'core/input') diff --git a/core/input/input.cpp b/core/input/input.cpp index 0db20a7c82..c0c029fda0 100644 --- a/core/input/input.cpp +++ b/core/input/input.cpp @@ -1446,4 +1446,8 @@ Input::Input() { } } +Input::~Input() { + singleton = nullptr; +} + ////////////////////////////////////////////////////////// diff --git a/core/input/input.h b/core/input/input.h index bbdac46805..42016f2417 100644 --- a/core/input/input.h +++ b/core/input/input.h @@ -331,6 +331,7 @@ public: void set_event_dispatch_function(EventDispatchFunc p_function); Input(); + ~Input(); }; VARIANT_ENUM_CAST(Input::MouseMode); -- cgit v1.2.3