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 - SDL_GetMouseState() always return 0 in fullscreen mode
Summary: SDL_GetMouseState() always return 0 in fullscreen mode
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: events (show other bugs)
Version: HG 2.0
Hardware: x86_64 Mac OS X 10.5 (Intel)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-30 12:15 UTC by Dmitri Vedenko
Modified: 2009-12-23 10:01 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 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!