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 869

Summary: SDL_GetMouseState() always return 0 in fullscreen mode
Product: SDL Reporter: Dmitri Vedenko <vedenko>
Component: eventsAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86_64   
OS: Mac OS X 10.5 (Intel)   

Description Dmitri Vedenko 2009-10-30 12:15:58 UTC
In a full screen mode SDL_GetMouseState return 0 regardless of the button pressed. Yet it still returns the correct position. Mouse id is retrieved using SDL_SelectMouse(-1). Function works seamlessly in window mode. 

PS. I did not checked whether this behavior is reproducible on non OS X systems
Comment 1 Sam Lantinga 2009-12-03 00:58:45 UTC
I think this is fixed in the latest SDL 1.3 snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

Can you give it a try and let me know if this is fixed?
Comment 2 Dmitri Vedenko 2009-12-23 07:25:07 UTC
Works like a charm for me, thanks
Comment 3 Sam Lantinga 2009-12-23 10:01:24 UTC
Great, thanks!