Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

No mouse-up notification when window focus is lost (win 7) #1955

Closed
SoylentGraham opened this Issue · 4 comments

3 participants

@SoylentGraham

When you click a mouse button down and lose focus (eg. breakpoint hit and vis studio takes focus) you never get an equivalent mouse-up. Bit of a pain when tracking inputs or doing some gesture/tracking stuff.

I'm guessing this is a GLUT thing as it's wholly avoidable when handling WINAPI messages properly... I've not looked into it yet, but it's becoming a pain for me when working so I'm going to try and fix it, just wanted to make an issue first.

Not checked any other OS's as I've not yet ported my projects.

@bilderbuchi
Owner

hm, maybe I don't understand this correctly, but why would you expect one application to intercept the events of another application which currently has focus (and thus should receive the events)?

@SoylentGraham
@SoylentGraham

Okay, just to confirm then; GLUT isn't sending GLUT_UP which may be expected behaviour, but this leaves pressedButtons in an incorrect state (buttons registered as down when they're not).
Will continue to work out a solution (if not just for myself) so I can tell when the mouse has been released without a major change to the event-based design (ie. not reading the immediate state in various mouse/idle functions)

@kylemcdonald

closing this issue since GLUT is not our primary windowing system anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.