[DirectPython] DirectPython with Pyogre
Status: Inactive
Brought to you by:
hsalo
From: Jamison P. <jam...@in...> - 2006-06-21 05:36:48
|
Hello all.. I'm new to DirectPython, but it seems to be exactly what I want for input in my engine. I'm using Pyogre (python binding to the C OGRE rendering libraries) for the graphics in the program and would like to figure out a way to use DirectPython for my Input and Audio. The problem I'm having is that I don't receive any messages on d3d.getMessages() when using Pyogre's window for d3d. I'm initialising d3d with the following: d3d.createDevice(u'', u'', 0, 0, False, CREATE.HARDWARE, self.graphics.hWnd) My d3d.Media and d3d.Sound work just fine in this setup, but when I watch for .getMessages() I get nothing from the Pyogre window, no mouseMoves, no windowResizes, nada. When I change the device to 'd3d.createDevice()' it creates a second window (obviously) for DirectPython and I get all my messages spilling into the print log as intended. Is there something else I have to do in order to have DirectPython be able to intercept inputs to a foreign window? I know there are examples of uses in WxPython and some other frameworks that use a non-native window, but I don't see anything in there in regards to hooking the input from another framework. The Pyogre input handling leaves much to be desired, so any help in this would be greatly appreciated. -Jamison Prianos |