Jump to content
The Dark Mod Forums

Stuck mouse glitch


Recommended Posts

For some reason the editor tends to do this to me every once and a while. I will be using the 3d camera and for some reason as long as the Dark Radiant window is open, the mouse wont get out of the 3d view box. If I hit tab though it gets out. But sometimes when looking around a 2d view using the right mouse button and moving, the mouse can get stuck, and when I alt tab to a different program and then move the cursor over Dark Radiant it gets stuck again and if I shake the mouse around it keeps centering on where it is stuck. I've had to quit when it does this because tab does nothing.

Link to comment
Share on other sites

Did you try the right mouse button? Personally I find it really annoying that I have to toggle the movement by using the right mouse button to enable/disable it. I tend to forget it, and then I move the camera widly around because of it. I would prefer it if the movement is active as long as the button is pressed.

Gerhard

Link to comment
Share on other sites

Did you try the right mouse button? Personally I find it really annoying that I have to toggle the movement by using the right mouse button to enable/disable it. I tend to forget it, and then I move the camera widly around because of it. I would prefer it if the movement is active as long as the button is pressed.

This is already implemented, you can change the behaviour in Preferences->Camera. :)

Link to comment
Share on other sites

For some reason the editor tends to do this to me every once and a while. I will be using the 3d camera and for some reason as long as the Dark Radiant window is open, the mouse wont get out of the 3d view box. If I hit tab though it gets out. But sometimes when looking around a 2d view using the right mouse button and moving, the mouse can get stuck, and when I alt tab to a different program and then move the cursor over Dark Radiant it gets stuck again and if I shake the mouse around it keeps centering on where it is stuck. I've had to quit when it does this because tab does nothing.

This is because the renderer is too slow and can't keep track of the mouse pointer.

 

During toggled freelook mode, the mouse pointer is "caught" and kept at the middle of the window after each movement. This is usually happening very fast and the mouse pointer can never go out of the window bounds. However, if the rendering takes too much time (or if you're moving the mouse really fast), the user is able to move the mouse out of the window bounds before DarkRadiant gets a chance of moving it back to the window.

 

Once the mouse pointer is "out of window bounds", no more mouse events get sent to the camera window and it will sit there, doing nothing.

 

Not much you and me can do about it, except this:

- Hit Alt-Tab to leave the app, DarkRadiant will detect this and leave the freelook mode.

- Try to move the hidden mouse back in over the camwindow, flying blind so to say. Once you see the cam moving again, hit RMB.

- Use the non-toggleable freelook mode as last resort.

Link to comment
Share on other sites

Once the mouse pointer is "out of window bounds", no more mouse events get sent to the camera window and it will sit there, doing nothing.

 

You can use CaptureMouse (or some such) to avoid this. Don't know if this is available in DR as you use GTK, right? But it definitely is availabe in Win32, so maybe they have a wrapper for that.

 

http://www.codeproject.com/gdi/mousecapture.asp

Gerhard

Link to comment
Share on other sites

You can use CaptureMouse (or some such) to avoid this. Don't know if this is available in DR as you use GTK, right? But it definitely is availabe in Win32, so maybe they have a wrapper for that.

 

http://www.codeproject.com/gdi/mousecapture.asp

This is Windows-only, from the looks of it. But I'll have to check whether GTK provides a separate "on mouse leave" event for a given widget. This event would be exactly what we would need.

Link to comment
Share on other sites

In my opinion we should ditch the toggle-mouse altogether and provide a more standard drag-based interface. Toggle interfaces are generally poor design anyway (since things behave differently in different "modes"), and this seems to require some hackery to achieve.

Link to comment
Share on other sites

I personally favour that toggle mode. I find it much more convenient than the drag-solution, it makes it easier to de-select and select things and do other stuff without having to keep that stupid RMB down all the time.

Link to comment
Share on other sites

If the camera view routine cannot detect that the mouse has moved away because it was busy rendering, can instead DR capture the mouse over the grid view somehow and use it to disconnet the camera thing? I put that extremely clumsily but hope you know what I mean. I can't tell if my friend's left the house but his other friend can ring me when he arrives there. :laugh:

 

Wot I normally do is keep thrashing different buttons and throw the keyboard about and curse and swear. This always works for me.

Link to comment
Share on other sites

  • 4 weeks later...

I have just experienced this bug for the first time! It got fixed by Alt-Tab'ing to another window, then going back to DR.

 

But then I searched around the forums and found this thread, and I got it in my head to try to reproduce the problem. This time the problem was a bit different, and it would never fix, so I had to close DR.

 

I really like toggling 3D movement, but if that capturemouse fix mentioned above can be implemented it would be good. However, I've never gotten the problem before now, so I think it could actually just be lived with if necessary, since it's so rare an pretty much benign.

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...