{"action":"reopened","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/4982","repository_url":"https://api.github.com/repos/mono/MonoGame","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/4982/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/4982/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/4982/events","html_url":"https://github.com/mono/MonoGame/issues/4982","id":163910747,"number":4982,"title":"Is it possible to somehow implement mouse lock?","user":{"login":"quixoticaxis","id":14001556,"avatar_url":"https://avatars.githubusercontent.com/u/14001556?v=3","gravatar_id":"","url":"https://api.github.com/users/quixoticaxis","html_url":"https://github.com/quixoticaxis","followers_url":"https://api.github.com/users/quixoticaxis/followers","following_url":"https://api.github.com/users/quixoticaxis/following{/other_user}","gists_url":"https://api.github.com/users/quixoticaxis/gists{/gist_id}","starred_url":"https://api.github.com/users/quixoticaxis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quixoticaxis/subscriptions","organizations_url":"https://api.github.com/users/quixoticaxis/orgs","repos_url":"https://api.github.com/users/quixoticaxis/repos","events_url":"https://api.github.com/users/quixoticaxis/events{/privacy}","received_events_url":"https://api.github.com/users/quixoticaxis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-05T18:04:48Z","updated_at":"2016-07-05T18:29:12Z","closed_at":null,"body":"I've tried to search through forums and found no solution to lock mouse cursor to the game's window.\r\n\r\nIt would be awesome to have it. Something like \"Mouse.IsLocked=true\".\r\n\r\nWhy is it needed? When playing on multi-monitor systems clicking near the border of the game window (even in full screen) becomes a HUGE pain.\r\n\r\nReal life example. This issue happened in Dota 2 some time ago:\r\nI play, I try to nuke someone near the border of the screen, I click outside of the game window, the window minimizes itself, gg, wp.\r\n\r\nAlso if someone has some ideas how to implement it, I would be glad to hear them.\r\nThe variant with\r\n...\r\nif(mouseState.X<0) Mouse.SetPosition(0, mouseState.Y);\r\n...\r\ndoes not work, because with high-dpi mouse I manage to go half a monitor to the left and click a few times before this code executes.\r\n\r\nP.s. Sorry if the \"issues\" section is the wrong place to post about it."}}
{"actor":{"display_login":"quixoticaxis"}}