Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: window switching  (Read 714 times)

Lastmerlin

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 11
    • View Profile
window switching
« on: March 19, 2008, 06:43:54 AM »

My problem is the following:
After starting my application ois captures _all_ inputs - that includes all keys that are usually used to switch the active window (alt-tab etc). Furthermore i cant move the mouse cursor out of the application window.
That makes debugging a bit akward, as I have to kill the application before i could look at some debug messages on the Shell. At least I can switch to a terminal to kill the process if  I have made an infinite loop (thats why I am debugging it ;) ). As the project has a server-client structure I need to get access to a shell after starting the first client to start a second one.
Please tell me how to switch from my OIS app to another app.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +1/-0
  • Posts: 2661
    • View Profile
    • http://www.wreckedgames.com
Re: window switching
« Reply #1 on: March 19, 2008, 09:09:59 AM »

Hi, there are many solutions to this problem. (I assume you are on Linux, as you mention opening a terminal, et al). And, under other OS's, it is very easy to debug even when mouse is captured.

* Create OIS with no x11 mouse/keyboard grab. This may make your game difficult to play, but will let mouse float around freely.
* Use remote debugging, and/or second machine SSH'ing into your box
* Review this forum topic for gdb, x11 settings more friendly: http://www.ogre3d.org/phpBB2/viewtopic.php?t=20690&highlight=debug+mouse+x11
Logged

OvermindDL1

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 288
    • View Profile
    • http://www.overminddl1.com/forum/
Re: window switching
« Reply #2 on: March 19, 2008, 10:52:18 AM »

I would recommend remote debugging, always is better.
Logged