Skip to content

Commit

Permalink
UPBGE: Fix place of keyboard.active_events deprecated message.
Browse files Browse the repository at this point in the history
Bug reported by moaaa.
  • Loading branch information
panzergame committed Mar 2, 2017
1 parent 16914be commit 419566e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/gameengine/GameLogic/SCA_PythonKeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ PyObject *SCA_PythonKeyboard::pyattr_get_active_inputs(PyObjectPlus *self_v, con
{
SCA_PythonKeyboard* self = static_cast<SCA_PythonKeyboard*>(self_v);

ShowDeprecationWarning("keyboard.active_events", "keyboard.activeInputs");

PyDict_Clear(self->m_event_dict);

Expand All @@ -187,6 +186,8 @@ PyObject *SCA_PythonKeyboard::pyattr_get_active_events(PyObjectPlus *self_v, con
{
SCA_PythonKeyboard* self = static_cast<SCA_PythonKeyboard*>(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++)
Expand Down

0 comments on commit 419566e

Please sign in to comment.