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 2368

Summary: Security Software is blocking RegisterRawInputDevices()
Product: SDL Reporter: Yamagi <yamagi>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: metalcaedes
Version: 2.0.1   
Hardware: All   
OS: Windows 7   

Description Yamagi 2014-01-27 17:13:42 UTC
A customer of mine had the strange problem, that SDL_SetRelativeMouseMode() was failing for him on Windows 7. Luckily he was willing to provide some debug informations. We could track this problem down to RegisterRawInputDevices() failing due to security software running on his system (Norton Internet Security to be precise, but there are reports of similar problems with other products. For example [1]). Working around this issue with SDL_WarpMouseInWindow() is easy, and while I don't think that SDL2 can provide an internal workaround it would be really nice and helpfull if this could be documentated somewhere. 

1: http://forums.codeguru.com/showthread.php?498374-How-to-run-a-very-long-SQL-statement
Comment 1 Daniel Gibson 2014-01-27 17:42:40 UTC
I think SDL could (and should!) do the warping itself automatically as a fallback if RegisterRawInputDevices() fails.
It's shouldn't be up to the SDL user to add platform-specific hacks.
Comment 2 Sam Lantinga 2014-02-02 09:31:10 UTC
Hey Ryan, I recently added the mouse warping mode to SDL. Should we fall back to that, do you think?
Comment 3 Ryan C. Gordon 2014-02-02 15:28:50 UTC
(In reply to Sam Lantinga from comment #2)
> Hey Ryan, I recently added the mouse warping mode to SDL. Should we fall
> back to that, do you think?

Ugh, yeah, let's do that. Should we get this into 2.0.2?

--ryan.
Comment 4 Sam Lantinga 2014-02-09 10:48:35 UTC
Yes, this is a good fix to get in.
Comment 5 Sam Lantinga 2014-03-01 18:00:01 UTC
Okay, if RegisterRawInputDevices() fails, we'll transparently fall back to mouse warping.
https://hg.libsdl.org/SDL/rev/6e18328e25e0

Thanks!