EvanPMeth
20-07-2008 19:30:25
Alright im pretty new to python-ogre coming from panda3D.
I stumbled upon the Minimal application http://wiki.python-ogre.org/index.php/CodeSnippets_Minimal_Application which has the basic concepts of basic tutorial 5 and 6. When running it i found this problem with it. It was missing this method:
and proper calls to it in the following (missing self. )
This fixed the missing method problem but when running it, it just freezes when any button is pressed. Then i have to force quit.
My first guess is this code is outdated but its stamped "Alex de Landgraaf, 2008".
I am using python25 and python-ogre 1.1 windows
I stumbled upon the Minimal application http://wiki.python-ogre.org/index.php/CodeSnippets_Minimal_Application which has the basic concepts of basic tutorial 5 and 6. When running it i found this problem with it. It was missing this method:
def convertButton(self,oisID):
if oisID == OIS.MB_Left:
return CEGUI.LeftButton
elif oisID == OIS.MB_Right:
return CEGUI.RightButton
elif oisID == OIS.MB_Middle:
return CEGUI.MiddleButton
else:
return CEGUI.LeftButton
and proper calls to it in the following (missing self. )
def mousePressed(self, evt, id):
# Handle any CEGUI mouseButton events
CEGUI.System.getSingleton().injectMouseButtonDown(self.convertButton(id))
return True
def mouseReleased(self, evt, id):
# Handle any CEGUI mouseButton events
CEGUI.System.getSingleton().injectMouseButtonUp(self.convertButton(id))
return True
This fixed the missing method problem but when running it, it just freezes when any button is pressed. Then i have to force quit.
My first guess is this code is outdated but its stamped "Alex de Landgraaf, 2008".
I am using python25 and python-ogre 1.1 windows