Debugging using GDB: disabling mouse grabbing
Posted: Tue May 07, 2013 1:51 pm
Hey,
So far, when debugging Orxonox with GDB, the problem has been that
when GDB runs into a Breakpoint, Orxonox cannot release the mouse.
Me and fmauro figured out that one solution is to (for debugging purposes only) disable mouse grabbing fully by changing the InputManager::loadDevices() function to not grab the mouse even if exclusiveMouse_ is specified.
Now we need a way to quickly enable/disable this at build time, for example via a make target for debugging or some other settable option. What would be the correct way to do this?
- smerkli
So far, when debugging Orxonox with GDB, the problem has been that
when GDB runs into a Breakpoint, Orxonox cannot release the mouse.
Me and fmauro figured out that one solution is to (for debugging purposes only) disable mouse grabbing fully by changing the InputManager::loadDevices() function to not grab the mouse even if exclusiveMouse_ is specified.
Now we need a way to quickly enable/disable this at build time, for example via a make target for debugging or some other settable option. What would be the correct way to do this?
- smerkli