{"action":"created","issue":{"url":"https://api.github.com/repos/mono/MonoGame/issues/3358","labels_url":"https://api.github.com/repos/mono/MonoGame/issues/3358/labels{/name}","comments_url":"https://api.github.com/repos/mono/MonoGame/issues/3358/comments","events_url":"https://api.github.com/repos/mono/MonoGame/issues/3358/events","html_url":"https://github.com/mono/MonoGame/issues/3358","id":53399499,"number":3358,"title":"Mouse position bug under High DPI on Windows","user":{"login":"tgjones","id":102049,"avatar_url":"https://avatars.githubusercontent.com/u/102049?v=3","gravatar_id":"","url":"https://api.github.com/users/tgjones","html_url":"https://github.com/tgjones","followers_url":"https://api.github.com/users/tgjones/followers","following_url":"https://api.github.com/users/tgjones/following{/other_user}","gists_url":"https://api.github.com/users/tgjones/gists{/gist_id}","starred_url":"https://api.github.com/users/tgjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgjones/subscriptions","organizations_url":"https://api.github.com/users/tgjones/orgs","repos_url":"https://api.github.com/users/tgjones/repos","events_url":"https://api.github.com/users/tgjones/events{/privacy}","received_events_url":"https://api.github.com/users/tgjones/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-05T14:12:37Z","updated_at":"2015-03-25T16:50:29Z","closed_at":"2015-03-25T15:37:12Z","body":"My \"FPS camera\" code, that constantly resets the mouse position to the centre of the window, worked in XNA but doesn't (quite) work in MonoGame. It *sometimes* works, but other times, if you leave the mouse stationary, it still thinks the mouse is moving by 1 pixel in the X or Y direction.\r\n\r\nI've tracked the problem down to DPI scaling. If I set my DPI scaling to 100%, there's no problem. But with 150% scaling, there seems to be a problem with mouse position getting rounded. I haven't looked into it yet, but I guess that somewhere between setting the mouse position and retrieving it, there's a float getting rounded to an int, or something, which means MonoGame constantly thinks that the mouse has moved by a little bit, even if it hasn't.\r\n\r\nI'll work on a pull request for this, but I wanted to raise this issue first in case anyone else has experienced this issue. Do any MonoGame developers have DPI scaling enabled on their monitors?"},"comment":{"url":"https://api.github.com/repos/mono/MonoGame/issues/comments/86118474","html_url":"https://github.com/mono/MonoGame/issues/3358#issuecomment-86118474","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/3358","id":86118474,"user":{"login":"tomspilman","id":103522,"avatar_url":"https://avatars.githubusercontent.com/u/103522?v=3","gravatar_id":"","url":"https://api.github.com/users/tomspilman","html_url":"https://github.com/tomspilman","followers_url":"https://api.github.com/users/tomspilman/followers","following_url":"https://api.github.com/users/tomspilman/following{/other_user}","gists_url":"https://api.github.com/users/tomspilman/gists{/gist_id}","starred_url":"https://api.github.com/users/tomspilman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomspilman/subscriptions","organizations_url":"https://api.github.com/users/tomspilman/orgs","repos_url":"https://api.github.com/users/tomspilman/repos","events_url":"https://api.github.com/users/tomspilman/events{/privacy}","received_events_url":"https://api.github.com/users/tomspilman/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T16:50:29Z","updated_at":"2015-03-25T16:50:29Z","body":"> I briefly experimented with adding a  DpiAware  property to  GraphicsDeviceManager , and hooked it up for OpenTK (via OpenTK's  ToolkitOptions.EnableHighResolution  property) and WinForms. If MonoGame is going to have a  DpiAware  property on desktop platforms, it should at least work consistently across all of them.\r\n\r\nI agree... this is probably the right path."}}