{"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":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-05T14:12:37Z","updated_at":"2015-01-05T16:10:27Z","closed_at":null,"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/68729930","html_url":"https://github.com/mono/MonoGame/issues/3358#issuecomment-68729930","issue_url":"https://api.github.com/repos/mono/MonoGame/issues/3358","id":68729930,"user":{"login":"polsys","id":8926737,"avatar_url":"https://avatars.githubusercontent.com/u/8926737?v=3","gravatar_id":"","url":"https://api.github.com/users/polsys","html_url":"https://github.com/polsys","followers_url":"https://api.github.com/users/polsys/followers","following_url":"https://api.github.com/users/polsys/following{/other_user}","gists_url":"https://api.github.com/users/polsys/gists{/gist_id}","starred_url":"https://api.github.com/users/polsys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polsys/subscriptions","organizations_url":"https://api.github.com/users/polsys/orgs","repos_url":"https://api.github.com/users/polsys/repos","events_url":"https://api.github.com/users/polsys/events{/privacy}","received_events_url":"https://api.github.com/users/polsys/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T16:10:27Z","updated_at":"2015-01-05T16:10:27Z","body":"Making `WinFormsGameWindow` DPI-aware would force developers to implement scaling themselves, but on the other hand it would allow real control over backbuffer size (4K games?). Currently WindowsDX has to upscale the backbuffer, which blurs the final image.\r\n\r\nDo we want the DX or GL behavior to be the default? Which one is better for backwards compatibility?"}}