How to catch the mouse? Topic is solved

Problems building or running the engine, queries about how to use features etc.
Post Reply
Mattéal
Gnoblar
Posts: 1
Joined: Fri Feb 12, 2021 11:39 am

How to catch the mouse?

Post by Mattéal »

Ogre Version: 1.12.11

Hello,
I'm new to Ogre and i'm trying to setup a proper camera.
I'm using the OgreBites::CameraMan and it works fine except.. that the mouse isn't catched by the window.
The camera follow the cursor's movements, but the mouse is still able to quit the window.

Do you know if their is a way to call the SDL_SetRelativeMouseMode() function, or to do the same job in a different way?
User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 449
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 156

Re: How to catch the mouse?

Post by sercero »

Hello,

I think you need to use:

Code: Select all

OgreBites::ApplicationContextBase::setWindowGrab()
https://ogrecave.github.io/ogre/api/1.1 ... fe8d530aa

Best regards.
Post Reply