{"action":"created","issue":{"url":"https://api.github.com/repos/tomwendel/monogameui/issues/17","labels_url":"https://api.github.com/repos/tomwendel/monogameui/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/tomwendel/monogameui/issues/17/comments","events_url":"https://api.github.com/repos/tomwendel/monogameui/issues/17/events","html_url":"https://github.com/tomwendel/monogameui/pull/17","id":118862250,"number":17,"title":"Fix: Mousereset","user":{"login":"CsharpLassi","id":12987399,"avatar_url":"https://avatars.githubusercontent.com/u/12987399?v=3","gravatar_id":"","url":"https://api.github.com/users/CsharpLassi","html_url":"https://github.com/CsharpLassi","followers_url":"https://api.github.com/users/CsharpLassi/followers","following_url":"https://api.github.com/users/CsharpLassi/following{/other_user}","gists_url":"https://api.github.com/users/CsharpLassi/gists{/gist_id}","starred_url":"https://api.github.com/users/CsharpLassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CsharpLassi/subscriptions","organizations_url":"https://api.github.com/users/CsharpLassi/orgs","repos_url":"https://api.github.com/users/CsharpLassi/repos","events_url":"https://api.github.com/users/CsharpLassi/events{/privacy}","received_events_url":"https://api.github.com/users/CsharpLassi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-25T15:40:09Z","updated_at":"2015-11-26T13:00:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tomwendel/monogameui/pulls/17","html_url":"https://github.com/tomwendel/monogameui/pull/17","diff_url":"https://github.com/tomwendel/monogameui/pull/17.diff","patch_url":"https://github.com/tomwendel/monogameui/pull/17.patch"},"body":"Die alte Mausresetmethode funktionierte nicht unter Linux. "},"comment":{"url":"https://api.github.com/repos/tomwendel/monogameui/issues/comments/159906977","html_url":"https://github.com/tomwendel/monogameui/pull/17#issuecomment-159906977","issue_url":"https://api.github.com/repos/tomwendel/monogameui/issues/17","id":159906977,"user":{"login":"jvbsl","id":13928225,"avatar_url":"https://avatars.githubusercontent.com/u/13928225?v=3","gravatar_id":"","url":"https://api.github.com/users/jvbsl","html_url":"https://github.com/jvbsl","followers_url":"https://api.github.com/users/jvbsl/followers","following_url":"https://api.github.com/users/jvbsl/following{/other_user}","gists_url":"https://api.github.com/users/jvbsl/gists{/gist_id}","starred_url":"https://api.github.com/users/jvbsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvbsl/subscriptions","organizations_url":"https://api.github.com/users/jvbsl/orgs","repos_url":"https://api.github.com/users/jvbsl/repos","events_url":"https://api.github.com/users/jvbsl/events{/privacy}","received_events_url":"https://api.github.com/users/jvbsl/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T13:00:50Z","updated_at":"2015-11-26T13:00:50Z","body":"Das Problem gab es schon einmal, wurde in OctoAwesome meines Wissens dann auch eingebaut. Das Problem tritt außerdem nicht auf jedem Linux auf, kann also von Distribution oder vlt. auch Hardware abhängig sein.\r\nMeine Vermutung was passiert ist, dass Linux intern die Mauspositionsveränderung z.B. als float hält, MonoGame diese ausliest und zu int castet. Sind die Werte nun kleiner 1, dann bekommen wir 0,0 zurück, was keiner Änderung entspricht, setzen die Mausposition wieder zurück und damit auch den float, der bereits einen Teil der Mausbewegung enthält nun setzen wir somit alle floats < 1 automatisch zurück cast zu int und aufaddieren ergibt immer noch 0, obwohl das aufaddieren und anschließende casten zu int eine Bewegung darstellt.\r\nWas besseres fällt mir bisher nicht ein"}}