We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1073 - SDL_GetMouseState returns incorrect value
Summary: SDL_GetMouseState returns incorrect value
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86 Mac OS X 10.6
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 17:52 UTC by Vern Jensen
Modified: 2011-03-09 16:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vern Jensen 2010-11-04 17:52:46 UTC
I have event code that responds to the resizing of a window by fixing the window's aspect ratio (and then resetting the window's size accordingly). 

After a window resize however, SDL_GetMouseState incorrectly returns "true" for the left mouse button, as if it's down when it's not. This continues until I click inside the window.

MacOS X. Haven't tested on other OSes.
Comment 1 Sam Lantinga 2011-02-24 18:12:30 UTC
I haven't tried this but it might be fixed by all the changes lately.  Can you retest with the latest snapshot?

Thanks!
Comment 2 Vern Jensen 2011-03-09 16:14:47 UTC
Yep, fixed.