@@ -56,6 +56,7 @@ static PyObject *py_ue_swidget_set_enabled(ue_PySWidget *self, PyObject * args)
5656 return (PyObject *)self;
5757}
5858
59+ #if ENGINE_MINOR_VERSION > 12
5960static PyObject *py_ue_swidget_bind_on_mouse_button_down (ue_PySWidget *self, PyObject * args) {
6061 PyObject *py_callable;
6162 if (!PyArg_ParseTuple (args, " O:bind_on_mouse_button_down" , &py_callable)) {
@@ -143,7 +144,7 @@ static PyObject *py_ue_swidget_bind_on_mouse_move(ue_PySWidget *self, PyObject *
143144 Py_INCREF (self);
144145 return (PyObject *)self;
145146}
146-
147+ # endif
147148
148149
149150static PyObject *py_ue_swidget_has_keyboard_focus (ue_PySWidget *self, PyObject * args) {
@@ -173,10 +174,12 @@ static PyMethodDef ue_PySWidget_methods[] = {
173174 { " set_cursor" , (PyCFunction)py_ue_swidget_set_cursor, METH_VARARGS , " " },
174175 { " set_enabled" , (PyCFunction)py_ue_swidget_set_enabled, METH_VARARGS , " " },
175176 { " has_keyboard_focus" , (PyCFunction)py_ue_swidget_has_keyboard_focus, METH_VARARGS , " " },
177+ #if ENGINE_MINOR_VERSION > 12
176178 { " bind_on_mouse_button_down" , (PyCFunction)py_ue_swidget_bind_on_mouse_button_down, METH_VARARGS , " " },
177179 { " bind_on_mouse_button_up" , (PyCFunction)py_ue_swidget_bind_on_mouse_button_down, METH_VARARGS , " " },
178180 { " bind_on_mouse_double_click" , (PyCFunction)py_ue_swidget_bind_on_mouse_double_click, METH_VARARGS , " " },
179181 { " bind_on_mouse_move" , (PyCFunction)py_ue_swidget_bind_on_mouse_move, METH_VARARGS , " " },
182+ #endif
180183 { NULL } /* Sentinel */
181184};
182185
0 commit comments