| 22 | | code: |
| 23 | | |
| | 22 | code. In the file src/libraries/core/input/InputManager.c, there is a function |
| | 23 | LoadDevices. The part shown below grabs the mouse and keyboard: |
| | 24 | {{{ |
| | 25 | if (CommandLineParser::getValue("keyboard_no_grab").get<bool>()) |
| | 26 | paramList.insert(StringPair("x11_keyboard_grab", "false")); |
| | 27 | else |
| | 28 | paramList.insert(StringPair("x11_keyboard_grab", "true")); |
| | 29 | paramList.insert(StringPair("x11_mouse_grab", "true")); |
| | 30 | paramList.insert(StringPair("x11_mouse_hide", "true")); |
| | 31 | }}} |
| | 32 | Change all the 'true' values to 'false' here to disable mouse/keyboard grabbing |
| | 33 | altogether. This makes the game awkward to play, but when it runs into a breakpoint, |
| | 34 | you can freely move your mouse focus out of the game and into the GDB window. |