From 419566efde06fd57d0b35d456c8cef8d612a510b Mon Sep 17 00:00:00 2001 From: Porteries Tristan Date: Thu, 2 Mar 2017 18:57:49 +0000 Subject: [PATCH] UPBGE: Fix place of keyboard.active_events deprecated message. Bug reported by moaaa. --- source/gameengine/GameLogic/SCA_PythonKeyboard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/gameengine/GameLogic/SCA_PythonKeyboard.cpp b/source/gameengine/GameLogic/SCA_PythonKeyboard.cpp index 9b2cdd61d7ff..ae66d7270765 100644 --- a/source/gameengine/GameLogic/SCA_PythonKeyboard.cpp +++ b/source/gameengine/GameLogic/SCA_PythonKeyboard.cpp @@ -163,7 +163,6 @@ PyObject *SCA_PythonKeyboard::pyattr_get_active_inputs(PyObjectPlus *self_v, con { SCA_PythonKeyboard* self = static_cast(self_v); - ShowDeprecationWarning("keyboard.active_events", "keyboard.activeInputs"); PyDict_Clear(self->m_event_dict); @@ -187,6 +186,8 @@ PyObject *SCA_PythonKeyboard::pyattr_get_active_events(PyObjectPlus *self_v, con { SCA_PythonKeyboard* self = static_cast(self_v); + ShowDeprecationWarning("keyboard.active_events", "keyboard.activeInputs"); + PyDict_Clear(self->m_event_dict); for (int i=SCA_IInputDevice::BEGINKEY; i<=SCA_IInputDevice::ENDKEY; i++)