{"action":"created","issue":{"url":"https://api.github.com/repos/tomaka/glium/issues/1514","repository_url":"https://api.github.com/repos/tomaka/glium","labels_url":"https://api.github.com/repos/tomaka/glium/issues/1514/labels{/name}","comments_url":"https://api.github.com/repos/tomaka/glium/issues/1514/comments","events_url":"https://api.github.com/repos/tomaka/glium/issues/1514/events","html_url":"https://github.com/tomaka/glium/issues/1514","id":171985102,"number":1514,"title":"Mismatching documentation?","user":{"login":"Ploppz","id":4773287,"avatar_url":"https://avatars.githubusercontent.com/u/4773287?v=3","gravatar_id":"","url":"https://api.github.com/users/Ploppz","html_url":"https://github.com/Ploppz","followers_url":"https://api.github.com/users/Ploppz/followers","following_url":"https://api.github.com/users/Ploppz/following{/other_user}","gists_url":"https://api.github.com/users/Ploppz/gists{/gist_id}","starred_url":"https://api.github.com/users/Ploppz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ploppz/subscriptions","organizations_url":"https://api.github.com/users/Ploppz/orgs","repos_url":"https://api.github.com/users/Ploppz/repos","events_url":"https://api.github.com/users/Ploppz/events{/privacy}","received_events_url":"https://api.github.com/users/Ploppz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-18T19:48:51Z","updated_at":"2016-08-28T16:11:25Z","closed_at":null,"body":"I have problems matching MouseMoved and MouseWheel events. I'm looking at [this](https://tomaka.github.io/glium/glium/glutin/enum.Event.html) documentation, and here is my code:\r\n```\r\nuse glium::DisplayBuild;\r\nlet display = glium::glutin::WindowBuilder::new().build_glium().unwrap();\r\nlet prg = create_program(&display);\r\nlet (vbo, ebo) = create_quad(&display, 2.0);\r\n\r\nloop {\r\n    let mut target = display.draw(); // traget: glium::Frame\r\n    target.clear_color(0.0, 0.0, 1.0, 1.0);\r\n    target.draw(&vbo, &ebo, &prg, &uniforms,\r\n        &Default::default()).unwrap();\r\n    target.finish().unwrap();\r\n\r\n    for ev in display.poll_events() {\r\n        match ev {\r\n            glium::glutin::Event::Closed\r\n                => return,\r\n            glium::glutin::Event::MouseMoved(x, y)\r\n                => self.mouse_moved(x, y),\r\n            glium::glutin::Event::MouseWheel(glium::glutin::MouseScrollDelta::LineDelta(x, y))\r\n                => self.mouse_wheel_line(x, y),\r\n            _\r\n                => (),\r\n        }\r\n    }\r\n}\r\n\r\n```\r\nI get this error:\r\n```\r\nsrc/render.rs:63:21: 63:103 error: this pattern has 1 field, but the corresponding variant has 2 fields [E0023]\r\nsrc/render.rs:63                     glium::glutin::Event::MouseWheel(glium::glutin::MouseScrollDelta::LineDelta(x, y))\r\n                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nsrc/render.rs:63:21: 63:103 help: run `rustc --explain E0023` to see a detailed explanation\r\n```\r\nWhich lines up with the documentation of `glutin` alone ( https://tomaka.github.io/glutin/glutin/enum.Event.html )."},"comment":{"url":"https://api.github.com/repos/tomaka/glium/issues/comments/242983050","html_url":"https://github.com/tomaka/glium/issues/1514#issuecomment-242983050","issue_url":"https://api.github.com/repos/tomaka/glium/issues/1514","id":242983050,"user":{"login":"YetAnotherMinion","id":8005290,"avatar_url":"https://avatars.githubusercontent.com/u/8005290?v=3","gravatar_id":"","url":"https://api.github.com/users/YetAnotherMinion","html_url":"https://github.com/YetAnotherMinion","followers_url":"https://api.github.com/users/YetAnotherMinion/followers","following_url":"https://api.github.com/users/YetAnotherMinion/following{/other_user}","gists_url":"https://api.github.com/users/YetAnotherMinion/gists{/gist_id}","starred_url":"https://api.github.com/users/YetAnotherMinion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YetAnotherMinion/subscriptions","organizations_url":"https://api.github.com/users/YetAnotherMinion/orgs","repos_url":"https://api.github.com/users/YetAnotherMinion/repos","events_url":"https://api.github.com/users/YetAnotherMinion/events{/privacy}","received_events_url":"https://api.github.com/users/YetAnotherMinion/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T16:11:25Z","updated_at":"2016-08-28T16:11:25Z","body":"could be a typo in glium documentation helped along by zealous auto complete?"}}
{"actor":{"display_login":"YetAnotherMinion"}}