{"action":"created","issue":{"url":"https://api.github.com/repos/BZFlag-Dev/bzflag/issues/15","labels_url":"https://api.github.com/repos/BZFlag-Dev/bzflag/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/BZFlag-Dev/bzflag/issues/15/comments","events_url":"https://api.github.com/repos/BZFlag-Dev/bzflag/issues/15/events","html_url":"https://github.com/BZFlag-Dev/bzflag/issues/15","id":89096586,"number":15,"title":"Mouse confinement needs to be refactored","user":{"login":"macsforme","id":4955448,"avatar_url":"https://avatars.githubusercontent.com/u/4955448?v=3","gravatar_id":"","url":"https://api.github.com/users/macsforme","html_url":"https://github.com/macsforme","followers_url":"https://api.github.com/users/macsforme/followers","following_url":"https://api.github.com/users/macsforme/following{/other_user}","gists_url":"https://api.github.com/users/macsforme/gists{/gist_id}","starred_url":"https://api.github.com/users/macsforme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macsforme/subscriptions","organizations_url":"https://api.github.com/users/macsforme/orgs","repos_url":"https://api.github.com/users/macsforme/repos","events_url":"https://api.github.com/users/macsforme/events{/privacy}","received_events_url":"https://api.github.com/users/macsforme/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BZFlag-Dev/bzflag/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/BZFlag-Dev/bzflag/milestones/2","html_url":"https://github.com/BZFlag-Dev/bzflag/milestones/2.4.4%20Release","labels_url":"https://api.github.com/repos/BZFlag-Dev/bzflag/milestones/2/labels","id":1113629,"number":2,"title":"2.4.4 Release","description":"The next BZFlag maintenance release with several security patches and bug fixes","creator":{"login":"blast007","id":328999,"avatar_url":"https://avatars.githubusercontent.com/u/328999?v=3","gravatar_id":"","url":"https://api.github.com/users/blast007","html_url":"https://github.com/blast007","followers_url":"https://api.github.com/users/blast007/followers","following_url":"https://api.github.com/users/blast007/following{/other_user}","gists_url":"https://api.github.com/users/blast007/gists{/gist_id}","starred_url":"https://api.github.com/users/blast007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blast007/subscriptions","organizations_url":"https://api.github.com/users/blast007/orgs","repos_url":"https://api.github.com/users/blast007/repos","events_url":"https://api.github.com/users/blast007/events{/privacy}","received_events_url":"https://api.github.com/users/blast007/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":5,"state":"open","created_at":"2015-05-17T00:35:30Z","updated_at":"2015-06-26T06:35:15Z","due_on":"2015-07-31T05:00:00Z","closed_at":null},"comments":1,"created_at":"2015-06-17T18:53:00Z","updated_at":"2015-06-29T18:54:28Z","closed_at":null,"body":"The mouse is currently restricted to the window when Options->Input Settings->Confine Mouse->Window is set. This appears to be in effect at all times. By contrast, when Confine Mouse->MotionBox is set, the mouse is confined to the mouse box only while playing, and a player may release the mouse temporarily by holding down ctrl. Confinement to the motionbox appears to be accomplished by taking the mouse position and warping it. On some platforms, there are reports that if the mouse escapes the window or motionbox (probably between frames), it remains there until moved back into the window. Additionally, because the mouse can escape the window, we currently require the use of the SDL_CaptureMouse() (which is not in any official releases of SDL 2 yet) function when using SDL 2, because motion events outside the window are not reported.\r\n\r\nThe desired behavior is for the mouse to be confined, whether to the window or to the motionbox, only while playing, and for it to work consistently across all platforms. We would also like to remove our dependency on SDL_CaptureMouse(), which could be accomplished by having the window grab the mouse when in confine to motionbox mode also."},"comment":{"url":"https://api.github.com/repos/BZFlag-Dev/bzflag/issues/comments/116795703","html_url":"https://github.com/BZFlag-Dev/bzflag/issues/15#issuecomment-116795703","issue_url":"https://api.github.com/repos/BZFlag-Dev/bzflag/issues/15","id":116795703,"user":{"login":"macsforme","id":4955448,"avatar_url":"https://avatars.githubusercontent.com/u/4955448?v=3","gravatar_id":"","url":"https://api.github.com/users/macsforme","html_url":"https://github.com/macsforme","followers_url":"https://api.github.com/users/macsforme/followers","following_url":"https://api.github.com/users/macsforme/following{/other_user}","gists_url":"https://api.github.com/users/macsforme/gists{/gist_id}","starred_url":"https://api.github.com/users/macsforme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macsforme/subscriptions","organizations_url":"https://api.github.com/users/macsforme/orgs","repos_url":"https://api.github.com/users/macsforme/repos","events_url":"https://api.github.com/users/macsforme/events{/privacy}","received_events_url":"https://api.github.com/users/macsforme/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T18:54:28Z","updated_at":"2015-06-29T18:54:28Z","body":"A few enhancements were made by @blast007, but further changes were found to be too invasive for a point release. Moving to the 2.6 milestone."}}