TimErwin
14-08-2007 21:02:36
Hi!
I'm just trying to use buffered input with OIS. As far as the Tutorial 05 (Buffered Input) is concerned: that is not really buffered input, is it?
Neither does it implement an OIS event listener (not even talking about registering it) nor do keyPressed etc get an OIS event. Moreover, buffered key input is disabled by default in the sample framework:
This is no bashing by no means, just a question, because it's really confusing.
This leads to a second question: is there a way to have a look at the Python code to extract from the API how things work? I tried to follow the C++ buffered input tutorial in the main wiki:
and got this exception:
PinaInput inherits from ois.KeyListener. Looks right to me although it doesn't work. I would like to look up the correct usage somewhere, but didn't find anything.
Thanks in advance,
Tim-Erwin
I'm just trying to use buffered input with OIS. As far as the Tutorial 05 (Buffered Input) is concerned: that is not really buffered input, is it?
Neither does it implement an OIS event listener (not even talking about registering it) nor do keyPressed etc get an OIS event. Moreover, buffered key input is disabled by default in the sample framework:
def __init__(self, renderWindow, camera, bufferedKeys = False, bufferedMouse = True, bufferedJoy = False):
This is no bashing by no means, just a question, because it's really confusing.
This leads to a second question: is there a way to have a look at the Python code to extract from the API how things work? I tried to follow the C++ buffered input tutorial in the main wiki:
self.keyboard = self.inputManager.createInputObjectKeyboard(ois.OISKeyboard, True) # True == buffered
self.keyboard.setEventCallback(self)
and got this exception:
self.keyboard.setEventCallback(self)
Boost.Python.ArgumentError: Python argument types in
Keyboard.setEventCallback(Keyboard, PinaInput)
did not match C++ signature:
setEventCallback(Keyboard_wrapper {lvalue}, OIS::KeyListener* keyListener)
setEventCallback(OIS::Keyboard {lvalue}, OIS::KeyListener* keyListener)
PinaInput inherits from ois.KeyListener. Looks right to me although it doesn't work. I would like to look up the correct usage somewhere, but didn't find anything.
Thanks in advance,
Tim-Erwin