emacinnes's picture

Mouse focus in GameWindow when in Windowed mode

Project:The Open Toolkit library
Version:1.0-2010-10-06
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

In the latest version of OpenTK, the mouse input seems to also now be captured for windows in front of the game window. i.e. I have the main game window and a form that sits in front of it for properties, for example. When I click on the properties form itself, the mouse event now also seems to register in the GameWindow. This wasn't the case back in the 0.9.8 release, is there a flag to toggle this behaviour? (fullscreen I can imagine the need for it, but in Windowed mode it's inappropriate).

Cheers,

Euan.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

I haven't been able to reproduce this with 1.0-beta-2 or current SVN. Mouse events are not reported when the GameWindow is not the active window (tested on Win7/64bit).

  • Which OS is this?
  • Are you mixing System.Windows.Forms with OpenTK.GameWindow in the same thread? This will not work, GameWindows must be created on their own thread (one thread per GameWindow, plus a different thread for WinForms).
the Fiddler's picture

#2

Status:open» need info
emacinnes's picture

#3

windows 7 64 bit. No I'm not mixing Windows.Forms and GameWindow on the same thread, they are on different threads (and were Ok in prior version of OpenTK 9.9.2, it's an odd one for sure)

emacinnes's picture

#4

I think this one can be closed, it's not occuring in the new releases, I'd used the Trunk build and was getting this error, the Branch release 2600++ is fine.

the Fiddler's picture

#5

Version:1.0-beta-2» 1.x-dev
Category:support request» bug report
Status:need info» open

Thanks. That clears things up, there are a number of bugfixes that haven't been ported to trunk yet. I'm leaving this open as a 1.x-dev bug (trunk) until the fix goes in.

the Fiddler's picture

#6

Status:open» fixed

Fixed in r2629.

the Fiddler's picture

#7

Version:1.x-dev» 1.0-2010-10-06
Status:fixed» closed

Closing issues fixed in opentk-1.0-2010-10-06 release.