diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2022-04-22 17:39:12 +0100 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2022-04-22 17:39:12 +0100 |
commit | 5e4e4967fec73d1727031eb6f57d6c83250af27b (patch) | |
tree | f02fdf2543a2180f0e46af5c35f4313a798e6079 /core/input | |
parent | f4b0c7a1ea8d86c1dfd96478ca12ad1360903d9d (diff) |
Use Input::push_input for tests plus extra mouse testing
Diffstat (limited to 'core/input')
-rw-r--r-- | core/input/input.cpp | 4 | ||||
-rw-r--r-- | core/input/input.h | 1 |
2 files changed, 5 insertions, 0 deletions
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); |