{"action":"created","issue":{"url":"https://api.github.com/repos/LaurentGomila/SFML/issues/95","labels_url":"https://api.github.com/repos/LaurentGomila/SFML/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/LaurentGomila/SFML/issues/95/comments","events_url":"https://api.github.com/repos/LaurentGomila/SFML/issues/95/events","html_url":"https://github.com/LaurentGomila/SFML/issues/95","id":1617222,"number":95,"title":"Event.MouseWheel.Delta sometimes returns 0","user":{"login":"LaurentGomila","id":245489,"avatar_url":"https://avatars.githubusercontent.com/u/245489?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGomila","html_url":"https://github.com/LaurentGomila","followers_url":"https://api.github.com/users/LaurentGomila/followers","following_url":"https://api.github.com/users/LaurentGomila/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGomila/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGomila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGomila/subscriptions","organizations_url":"https://api.github.com/users/LaurentGomila/orgs","repos_url":"https://api.github.com/users/LaurentGomila/repos","events_url":"https://api.github.com/users/LaurentGomila/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGomila/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LaurentGomila/SFML/labels/bug","name":"bug","color":"ff4242"},{"url":"https://api.github.com/repos/LaurentGomila/SFML/labels/m:sfml-window","name":"m:sfml-window","color":"cccccc"},{"url":"https://api.github.com/repos/LaurentGomila/SFML/labels/s:accepted","name":"s:accepted","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2011-09-11T08:39:10Z","updated_at":"2015-02-28T16:44:11Z","closed_at":null,"body":"On Windows, when a mouse wheel event is triggered, sometimes the Delta parameter is 0. It probably happens with high-resolution mice, which trigger mouse wheel events with an internal delta less than 120. Therefore this code:\r\n\r\n    event.MouseWheel.Delta = static_cast<Int16>(HIWORD(wParam)) / 120;\r\n\r\n... leads to Delta being 0.\r\n\r\nI must find a solution to handle correctly both regular and high-resolution mice."},"comment":{"url":"https://api.github.com/repos/LaurentGomila/SFML/issues/comments/76533677","html_url":"https://github.com/LaurentGomila/SFML/issues/95#issuecomment-76533677","issue_url":"https://api.github.com/repos/LaurentGomila/SFML/issues/95","id":76533677,"user":{"login":"LaurentGomila","id":245489,"avatar_url":"https://avatars.githubusercontent.com/u/245489?v=3","gravatar_id":"","url":"https://api.github.com/users/LaurentGomila","html_url":"https://github.com/LaurentGomila","followers_url":"https://api.github.com/users/LaurentGomila/followers","following_url":"https://api.github.com/users/LaurentGomila/following{/other_user}","gists_url":"https://api.github.com/users/LaurentGomila/gists{/gist_id}","starred_url":"https://api.github.com/users/LaurentGomila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaurentGomila/subscriptions","organizations_url":"https://api.github.com/users/LaurentGomila/orgs","repos_url":"https://api.github.com/users/LaurentGomila/repos","events_url":"https://api.github.com/users/LaurentGomila/events{/privacy}","received_events_url":"https://api.github.com/users/LaurentGomila/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T16:44:11Z","updated_at":"2015-02-28T16:44:11Z","body":"Not breaking the API between minor versions, especially with such nasty bugs that may end up being hard to track for users, is *very important* if we want SFML to be considered a little more seriously. Users who update from 2.2 to 2.3 expect their old code to continue to work as expected, not to have to track stupid bugs that the dev introduced."}}