{"action":"created","issue":{"url":"https://api.github.com/repos/prime31/Nez/issues/3","repository_url":"https://api.github.com/repos/prime31/Nez","labels_url":"https://api.github.com/repos/prime31/Nez/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/prime31/Nez/issues/3/comments","events_url":"https://api.github.com/repos/prime31/Nez/issues/3/events","html_url":"https://github.com/prime31/Nez/issues/3","id":133880233,"number":3,"title":"Mouse position is incorrect","user":{"login":"Async0x42","id":3268854,"avatar_url":"https://avatars.githubusercontent.com/u/3268854?v=3","gravatar_id":"","url":"https://api.github.com/users/Async0x42","html_url":"https://github.com/Async0x42","followers_url":"https://api.github.com/users/Async0x42/followers","following_url":"https://api.github.com/users/Async0x42/following{/other_user}","gists_url":"https://api.github.com/users/Async0x42/gists{/gist_id}","starred_url":"https://api.github.com/users/Async0x42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Async0x42/subscriptions","organizations_url":"https://api.github.com/users/Async0x42/orgs","repos_url":"https://api.github.com/users/Async0x42/repos","events_url":"https://api.github.com/users/Async0x42/events{/privacy}","received_events_url":"https://api.github.com/users/Async0x42/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-16T04:08:41Z","updated_at":"2016-02-16T04:47:31Z","closed_at":null,"body":"In the MacTest sample, as well as my own simple sample, the mouse coords are never correct.\r\n\r\nIn the attached image, the mouse is clicking on the D of debug, but a button is highlighted. However it's not always like that, sometimes the mouse can be in the middle of the blue area, and be highlighting a button. The offset can vary quite a bit.\r\n\r\n> Activated\tEvent\tTime\tDuration\tThread\r\n\tLog: mouse pos: {X:1165 Y:176}, scaled mouse pos: {X:1165 Y:176}, screen to world point: {X:1165 Y:176}, world to screen point: {X:1165 Y:176}\t58.04s\t\t\r\n\r\nEdit: And for example, with a screen of 1280x720, if I click the bottom right of the screen, the Y coord is over 800\r\n\r\n![image](https://cloud.githubusercontent.com/assets/3268854/13066913/9f2806d4-d438-11e5-87f4-591189cf83df.png)\r\n"},"comment":{"url":"https://api.github.com/repos/prime31/Nez/issues/comments/184516040","html_url":"https://github.com/prime31/Nez/issues/3#issuecomment-184516040","issue_url":"https://api.github.com/repos/prime31/Nez/issues/3","id":184516040,"user":{"login":"Async0x42","id":3268854,"avatar_url":"https://avatars.githubusercontent.com/u/3268854?v=3","gravatar_id":"","url":"https://api.github.com/users/Async0x42","html_url":"https://github.com/Async0x42","followers_url":"https://api.github.com/users/Async0x42/followers","following_url":"https://api.github.com/users/Async0x42/following{/other_user}","gists_url":"https://api.github.com/users/Async0x42/gists{/gist_id}","starred_url":"https://api.github.com/users/Async0x42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Async0x42/subscriptions","organizations_url":"https://api.github.com/users/Async0x42/orgs","repos_url":"https://api.github.com/users/Async0x42/repos","events_url":"https://api.github.com/users/Async0x42/events{/privacy}","received_events_url":"https://api.github.com/users/Async0x42/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T04:47:31Z","updated_at":"2016-02-16T04:47:31Z","body":"Er, sorry for multiple comments. I should have checked it out a bit more in depth, it does actually happen on 3.4 stable.\r\n\r\nIf the Design Resolution matches the base resolution, then there isn't an issue. If they don't match, then the mouse is offset incorrectly. Resizing the window will also cause the mouse coords to become incorrect.\r\n\r\n>         public DKRpg() : base(1280, 720)\r\n>         {\r\n>             policy = Scene.SceneResolutionPolicy.ShowAllPixelPerfect;\r\n>             Scene.setDefaultDesignResolution(640, 360, policy);\r\n>             Window.AllowUserResizing = true;\r\n>             Window.ClientSizeChanged += Window_ClientSizeChanged;\r\n>         }"}}