[solved] Initialising OIS with mouse cursor showing?

futnuh

23-05-2007 00:33:53

How does one initialise OIS so that the mouse cursor is shown?

http://www.wreckedgames.com/wiki/index.php/WreckedLibs:OIS:Manual:Win32

I've tried various incarnations of the following code without success:inputmanager = ois.createPythonInputSystem([("WINDOW", str(windowhandle)), ("w32_mouse", "DISCL_NONEXCLUSIVE")])

dermont

23-05-2007 06:16:24

Try adding:
("w32_mouse", "DISCL_FOREGROUND")


self.InputManager = OIS.createPythonInputSystem([("WINDOW", str(windowHnd)),("w32_mouse", "DISCL_NONEXCLUSIVE"), ("w32_mouse", "DISCL_FOREGROUND")])

futnuh

23-05-2007 06:22:05

Thanks Dermont, that works nicely.