I have WindowInput class which accepts InputListener derived classes to report user input in my C++ MJIN ("game engine") library. I provide MJIN in Python with SWIG.
When input comes, WindowInput invokes InputListener::onWindowInput(). It worked perfectly fine until I included PyQt4 library. After that it just segfaults, although I changed nothing with respect to input handling. And it only crashes in input handling, not anywhere else, so that's not PyQt4 (at least directly) related problem. The display is just fine. The only problem is when onWindowInput is called on the Python listener.
It's initialized as such here: http://goo.gl/OFPR13#cl-283
(calling InputListener(self) results in the error of incorrect number of arguments)
Can anyone tell me what I'm doing wrong?