Page 1 of 1

move my mouse out the window

Posted: Thu Feb 03, 2005 8:36 am
by kaiwae
how could I move my mouse out of correct game without "Alt+Tab".

Directly move my pointer out.

Posted: Thu Feb 03, 2005 8:38 am
by haffax
I don't think this is possible with Ogre's build-in input manager. Take a look at the MeshViewer source to see how the problem is solved there.

Posted: Thu Feb 03, 2005 8:47 am
by qsilver
You could modify the InputManager code to change the cooperation level of the DirectInput mouse code.

The alternative is to use MFC, WTL, WinForms, SDL, or some other toolkit to create your main window and handle all the keyboard/mouse events. You can then pass Ogre the window handle, and have it render inside your window.

Posted: Thu Feb 03, 2005 11:10 am
by :wumpus:
The mouse grabbing is there so you can use fps or space shooter (relative) style mouse control, if you only need absolute positioning you could disable it with the above methods.

Posted: Sat Feb 12, 2005 5:12 am
by kaiwae
qsilver wrote:You could modify the InputManager code to change the cooperation level of the DirectInput mouse code.

The alternative is to use MFC, WTL, WinForms, SDL, or some other toolkit to create your main window and handle all the keyboard/mouse events. You can then pass Ogre the window handle, and have it render inside your window.
I should modify which file?
OgreWin32Input8.cpp??? and thich file is main create the windows?

Posted: Sat Feb 12, 2005 7:34 am
by neocryptek
Please search!

http://www.ogre3d.org/phpBB2/viewtopic.php?t=7457

This thread has several ways to do it outlined.

-N30