move my mouse out the window

Problems building or running the engine, queries about how to use features etc.
Post Reply
kaiwae
Gnoblar
Posts: 9
Joined: Sat Jan 29, 2005 11:04 am

move my mouse out the window

Post by kaiwae »

how could I move my mouse out of correct game without "Alt+Tab".

Directly move my pointer out.
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8
Contact:

Post 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.
team-pantheon programmer
creators of Rastullahs Lockenpracht
qsilver
OGRE Community Helper
OGRE Community Helper
Posts: 198
Joined: Sat Oct 02, 2004 9:11 am
Location: San Francisco, California, USA

Post 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.
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post 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.
kaiwae
Gnoblar
Posts: 9
Joined: Sat Jan 29, 2005 11:04 am

Post 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?
User avatar
neocryptek
Gnome
Posts: 335
Joined: Sat Mar 01, 2003 11:21 pm
Location: Idaho, USA
Contact:

Post by neocryptek »

Please search!

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

This thread has several ways to do it outlined.

-N30
Post Reply