Skip to content

wasm_stub for eventloop-2.0#3

Open
iceiix wants to merge 2 commits into
eventloop-2.0from
eventloop-2.0_wasm_stub
Open

wasm_stub for eventloop-2.0#3
iceiix wants to merge 2 commits into
eventloop-2.0from
eventloop-2.0_wasm_stub

Conversation

@iceiix
Copy link
Copy Markdown
Owner

@iceiix iceiix commented May 19, 2019

Add wasm32 platform reusing emscripten implementation for eventloop-2.0

#2 for https://github.com/rust-windowing/winit/blob/eventloop-2.0/

@iceiix
Copy link
Copy Markdown
Owner Author

iceiix commented May 19, 2019

cargo build --target wasm32-unknown-unknown fails:

   Compiling winit v0.19.1 (/Users/admin/games/rust/winit)
error[E0432]: unresolved import `VirtualKeyCode`
   --> src/platform_impl/emscripten/mod.rs:697:9
    |
697 |     use VirtualKeyCode::*;
    |         ^^^^^^^^^^^^^^ maybe a missing `extern crate VirtualKeyCode;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:216:51
    |
216 |                 queue.lock().unwrap().push_back(::Event::WindowEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate WindowEvent;`?
   --> src/platform_impl/emscripten/mod.rs:218:30
    |
218 |                     event: ::WindowEvent::CursorMoved {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate WindowEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:224:51
    |
224 |                 queue.lock().unwrap().push_back(::Event::DeviceEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate DeviceEvent;`?
   --> src/platform_impl/emscripten/mod.rs:226:30
    |
226 |                     event: ::DeviceEvent::MouseMotion {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate DeviceEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate MouseButton;`?
   --> src/platform_impl/emscripten/mod.rs:234:28
    |
234 |                     0 => ::MouseButton::Left,
    |                            ^^^^^^^^^^^ maybe a missing `extern crate MouseButton;`?

error[E0433]: failed to resolve: maybe a missing `extern crate MouseButton;`?
   --> src/platform_impl/emscripten/mod.rs:235:28
    |
235 |                     1 => ::MouseButton::Middle,
    |                            ^^^^^^^^^^^ maybe a missing `extern crate MouseButton;`?

error[E0433]: failed to resolve: maybe a missing `extern crate MouseButton;`?
   --> src/platform_impl/emscripten/mod.rs:236:28
    |
236 |                     2 => ::MouseButton::Right,
    |                            ^^^^^^^^^^^ maybe a missing `extern crate MouseButton;`?

error[E0433]: failed to resolve: maybe a missing `extern crate MouseButton;`?
   --> src/platform_impl/emscripten/mod.rs:237:32
    |
237 |                     other => ::MouseButton::Other(other as u8),
    |                                ^^^^^^^^^^^ maybe a missing `extern crate MouseButton;`?

error[E0433]: failed to resolve: maybe a missing `extern crate ElementState;`?
   --> src/platform_impl/emscripten/mod.rs:240:58
    |
240 |                     ffi::EMSCRIPTEN_EVENT_MOUSEDOWN => ::ElementState::Pressed,
    |                                                          ^^^^^^^^^^^^ maybe a missing `extern crate ElementState;`?

error[E0433]: failed to resolve: maybe a missing `extern crate ElementState;`?
   --> src/platform_impl/emscripten/mod.rs:241:56
    |
241 |                     ffi::EMSCRIPTEN_EVENT_MOUSEUP => ::ElementState::Released,
    |                                                        ^^^^^^^^^^^^ maybe a missing `extern crate ElementState;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:244:51
    |
244 |                 queue.lock().unwrap().push_back(::Event::WindowEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate WindowEvent;`?
   --> src/platform_impl/emscripten/mod.rs:246:30
    |
246 |                     event: ::WindowEvent::MouseInput {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate WindowEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:278:51
    |
278 |                 queue.lock().unwrap().push_back(::Event::WindowEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate WindowEvent;`?
   --> src/platform_impl/emscripten/mod.rs:280:30
    |
280 |                     event: ::WindowEvent::KeyboardInput {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate WindowEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate ElementState;`?
   --> src/platform_impl/emscripten/mod.rs:284:38
    |
284 |                             state: ::ElementState::Pressed,
    |                                      ^^^^^^^^^^^^ maybe a missing `extern crate ElementState;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:292:51
    |
292 |                 queue.lock().unwrap().push_back(::Event::WindowEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate WindowEvent;`?
   --> src/platform_impl/emscripten/mod.rs:294:30
    |
294 |                     event: ::WindowEvent::KeyboardInput {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate WindowEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate ElementState;`?
   --> src/platform_impl/emscripten/mod.rs:298:38
    |
298 |                             state: ::ElementState::Released,
    |                                      ^^^^^^^^^^^^ maybe a missing `extern crate ElementState;`?

error[E0433]: failed to resolve: maybe a missing `extern crate TouchPhase;`?
   --> src/platform_impl/emscripten/mod.rs:321:51
    |
321 |             ffi::EMSCRIPTEN_EVENT_TOUCHSTART => ::TouchPhase::Started,
    |                                                   ^^^^^^^^^^ maybe a missing `extern crate TouchPhase;`?

error[E0433]: failed to resolve: maybe a missing `extern crate TouchPhase;`?
   --> src/platform_impl/emscripten/mod.rs:322:49
    |
322 |             ffi::EMSCRIPTEN_EVENT_TOUCHEND => ::TouchPhase::Ended,
    |                                                 ^^^^^^^^^^ maybe a missing `extern crate TouchPhase;`?

error[E0433]: failed to resolve: maybe a missing `extern crate TouchPhase;`?
   --> src/platform_impl/emscripten/mod.rs:323:50
    |
323 |             ffi::EMSCRIPTEN_EVENT_TOUCHMOVE => ::TouchPhase::Moved,
    |                                                  ^^^^^^^^^^ maybe a missing `extern crate TouchPhase;`?

error[E0433]: failed to resolve: maybe a missing `extern crate TouchPhase;`?
   --> src/platform_impl/emscripten/mod.rs:324:52
    |
324 |             ffi::EMSCRIPTEN_EVENT_TOUCHCANCEL => ::TouchPhase::Cancelled,
    |                                                    ^^^^^^^^^^ maybe a missing `extern crate TouchPhase;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:336:51
    |
336 |                 queue.lock().unwrap().push_back(::Event::WindowEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate WindowEvent;`?
   --> src/platform_impl/emscripten/mod.rs:338:30
    |
338 |                     event: ::WindowEvent::Touch(::Touch {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate WindowEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:386:26
    |
386 |             return Err(::CreationError::OsError("Cannot create another window".to_owned()));
    |                          ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:404:32
    |
404 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:406:32
    |
406 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:408:32
    |
408 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:410:32
    |
410 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:412:32
    |
412 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:414:32
    |
414 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:416:32
    |
416 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:418:32
    |
418 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:420:32
    |
420 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:426:36
    |
426 |                     .map_err(|e| ::CreationError::OsError(e))?;
    |                                    ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:428:36
    |
428 |                     .map_err(|e| ::CreationError::OsError(e))?;
    |                                    ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0412]: cannot find type `EventLoopWindowTarget` in module `platform_impl`
  --> src/event_loop.rs:44:34
   |
44 |     pub(crate) p: platform_impl::EventLoopWindowTarget<T>,
   |                                  ^^^^^^^^^^^^^^^^^^^^^ not found in `platform_impl`
help: possible candidate is found in another module, you can import it into scope
   |
12 | use event_loop::EventLoopWindowTarget;
   |

error[E0412]: cannot find type `EventLoopClosed` in the crate root
  --> src/platform_impl/emscripten/mod.rs:87:42
   |
87 |     pub fn wakeup(&self) -> Result<(), ::EventLoopClosed> {
   |                                          ^^^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
   |
5  | use event_loop::EventLoopClosed;
   |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:128:26
    |
128 |         where F: FnMut(::Event)
    |                          ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:139:26
    |
139 |         where F: FnMut(::Event) -> ::ControlFlow
    |                          ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0412]: cannot find type `ControlFlow` in the crate root
   --> src/platform_impl/emscripten/mod.rs:139:38
    |
139 |         where F: FnMut(::Event) -> ::ControlFlow
    |                                      ^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event_loop::ControlFlow;
    |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:168:34
    |
168 |     events: Box<Mutex<VecDeque<::Event>>>,
    |                                  ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:200:38
    |
200 |         let queue: &Mutex<VecDeque<::Event>> = mem::transmute(event_queue);
    |                                      ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0422]: cannot find struct, variant or union type `ModifiersState` in the crate root
   --> src/platform_impl/emscripten/mod.rs:202:27
    |
202 |         let modifiers = ::ModifiersState {
    |                           ^^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::ModifiersState;
    |

error[E0425]: cannot find function `WindowId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:217:34
    |
217 |                     window_id: ::WindowId(WindowId(0)),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use platform_impl::platform::WindowId;
    |
5   | use window::WindowId;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:219:38
    |
219 |                         device_id: ::DeviceId(DeviceId),
    |                                      ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:225:34
    |
225 |                     device_id: ::DeviceId(DeviceId),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0425]: cannot find function `WindowId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:245:34
    |
245 |                     window_id: ::WindowId(WindowId(0)),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use platform_impl::platform::WindowId;
    |
5   | use window::WindowId;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:247:38
    |
247 |                         device_id: ::DeviceId(DeviceId),
    |                                      ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:267:38
    |
267 |         let queue: &Mutex<VecDeque<::Event>> = mem::transmute(event_queue);
    |                                      ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0422]: cannot find struct, variant or union type `ModifiersState` in the crate root
   --> src/platform_impl/emscripten/mod.rs:269:27
    |
269 |         let modifiers = ::ModifiersState {
    |                           ^^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::ModifiersState;
    |

error[E0425]: cannot find function `WindowId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:279:34
    |
279 |                     window_id: ::WindowId(WindowId(0)),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use platform_impl::platform::WindowId;
    |
5   | use window::WindowId;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:281:38
    |
281 |                         device_id: ::DeviceId(DeviceId),
    |                                      ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0422]: cannot find struct, variant or union type `KeyboardInput` in the crate root
   --> src/platform_impl/emscripten/mod.rs:282:34
    |
282 |                         input: ::KeyboardInput {
    |                                  ^^^^^^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::KeyboardInput;
    |
5   | use event::WindowEvent::KeyboardInput;
    |

error[E0425]: cannot find function `WindowId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:293:34
    |
293 |                     window_id: ::WindowId(WindowId(0)),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use platform_impl::platform::WindowId;
    |
5   | use window::WindowId;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:295:38
    |
295 |                         device_id: ::DeviceId(DeviceId),
    |                                      ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0422]: cannot find struct, variant or union type `KeyboardInput` in the crate root
   --> src/platform_impl/emscripten/mod.rs:296:34
    |
296 |                         input: ::KeyboardInput {
    |                                  ^^^^^^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::KeyboardInput;
    |
5   | use event::WindowEvent::KeyboardInput;
    |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:318:38
    |
318 |         let queue: &Mutex<VecDeque<::Event>> = mem::transmute(event_queue);
    |                                      ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0425]: cannot find function `WindowId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:337:34
    |
337 |                     window_id: ::WindowId(WindowId(0)),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use platform_impl::platform::WindowId;
    |
5   | use window::WindowId;
    |

error[E0422]: cannot find struct, variant or union type `Touch` in the crate root
   --> src/platform_impl/emscripten/mod.rs:338:51
    |
338 |                     event: ::WindowEvent::Touch(::Touch {
    |                                                   ^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::Touch;
    |
5   | use event::WindowEvent::Touch;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:339:38
    |
339 |                         device_id: ::DeviceId(DeviceId),
    |                                      ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0412]: cannot find type `WindowAttributes` in the crate root
   --> src/platform_impl/emscripten/mod.rs:381:51
    |
381 |     pub fn new(event_loop: &EventLoop, attribs: ::WindowAttributes,
    |                                                   ^^^^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use window::WindowAttributes;
    |

error[E0412]: cannot find type `CreationError` in the crate root
   --> src/platform_impl/emscripten/mod.rs:383:29
    |
383 |         -> Result<Window, ::CreationError>
    |                             ^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use window::CreationError;
    |

error[E0412]: cannot find type `MouseCursor` in the crate root
   --> src/platform_impl/emscripten/mod.rs:525:41
    |
525 |     pub fn set_cursor(&self, _cursor: ::MouseCursor) {
    |                                         ^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use window::MouseCursor;
    |

error[E0412]: cannot find type `MonitorHandle` in the crate root
   --> src/platform_impl/emscripten/mod.rs:584:46
    |
584 |     pub fn get_fullscreen(&self) -> Option<::MonitorHandle> {
    |                                              ^^^^^^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use monitor::MonitorHandle;
    |
5   | use platform_impl::platform::MonitorHandle;
    |

error[E0412]: cannot find type `MonitorHandle` in the crate root
   --> src/platform_impl/emscripten/mod.rs:589:53
    |
589 |     pub fn set_fullscreen(&self, _monitor: Option<::MonitorHandle>) {
    |                                                     ^^^^^^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use monitor::MonitorHandle;
    |
5   | use platform_impl::platform::MonitorHandle;
    |

error[E0412]: cannot find type `Icon` in the crate root
   --> src/platform_impl/emscripten/mod.rs:604:51
    |
604 |     pub fn set_window_icon(&self, _icon: Option<::Icon>) {
    |                                                   ^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use icon::Icon;
    |

error[E0412]: cannot find type `VirtualKeyCode` in the crate root
   --> src/platform_impl/emscripten/mod.rs:689:54
    |
689 |                       location: c_ulong) -> Option<::VirtualKeyCode>
    |                                                      ^^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode;
    |

error[E0425]: cannot find value `LAlt` in this scope
   --> src/platform_impl/emscripten/mod.rs:700:48
    |
700 |             ffi::DOM_KEY_LOCATION_LEFT => Some(LAlt),
    |                                                ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::LAlt;
    |

error[E0425]: cannot find value `RAlt` in this scope
   --> src/platform_impl/emscripten/mod.rs:701:49
    |
701 |             ffi::DOM_KEY_LOCATION_RIGHT => Some(RAlt),
    |                                                 ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::RAlt;
    |

error[E0425]: cannot find value `LControl` in this scope
   --> src/platform_impl/emscripten/mod.rs:707:48
    |
707 |             ffi::DOM_KEY_LOCATION_LEFT => Some(LControl),
    |                                                ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::LControl;
    |

error[E0425]: cannot find value `RControl` in this scope
   --> src/platform_impl/emscripten/mod.rs:708:49
    |
708 |             ffi::DOM_KEY_LOCATION_RIGHT => Some(RControl),
    |                                                 ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::RControl;
    |

error[E0425]: cannot find value `Numlock` in this scope
   --> src/platform_impl/emscripten/mod.rs:715:27
    |
715 |         "NumLock" => Some(Numlock),
    |                           ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Numlock;
    |

error[E0425]: cannot find value `Scroll` in this scope
   --> src/platform_impl/emscripten/mod.rs:716:30
    |
716 |         "ScrollLock" => Some(Scroll),
    |                              ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Scroll;
    |

error[E0425]: cannot find value `LShift` in this scope
   --> src/platform_impl/emscripten/mod.rs:718:48
    |
718 |             ffi::DOM_KEY_LOCATION_LEFT => Some(LShift),
    |                                                ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::LShift;
    |

error[E0425]: cannot find value `RShift` in this scope
   --> src/platform_impl/emscripten/mod.rs:719:49
    |
719 |             ffi::DOM_KEY_LOCATION_RIGHT => Some(RShift),
    |                                                 ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::RShift;
    |

error[E0425]: cannot find value `NumpadEnter` in this scope
   --> src/platform_impl/emscripten/mod.rs:727:50
    |
727 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(NumpadEnter),
    |                                                  ^^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::NumpadEnter;
    |

error[E0425]: cannot find value `Return` in this scope
   --> src/platform_impl/emscripten/mod.rs:728:23
    |
728 |             _ => Some(Return),
    |                       ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Return;
    |

error[E0425]: cannot find value `Tab` in this scope
   --> src/platform_impl/emscripten/mod.rs:730:23
    |
730 |         "Tab" => Some(Tab),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Tab;
    |

error[E0425]: cannot find value `Space` in this scope
   --> src/platform_impl/emscripten/mod.rs:731:21
    |
731 |         " " => Some(Space),
    |                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Space;
    |

error[E0425]: cannot find value `Down` in this scope
   --> src/platform_impl/emscripten/mod.rs:733:29
    |
733 |         "ArrowDown" => Some(Down),
    |                             ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Down;
    |

error[E0425]: cannot find value `Left` in this scope
   --> src/platform_impl/emscripten/mod.rs:734:29
    |
734 |         "ArrowLeft" => Some(Left),
    |                             ^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::MouseButton::Left;
    |
5   | use event::VirtualKeyCode::Left;
    |
5   | use std::fmt::Alignment::Left;
    |
5   | use std::fmt::rt::v1::Alignment::Left;
    |

error[E0425]: cannot find value `Right` in this scope
   --> src/platform_impl/emscripten/mod.rs:735:30
    |
735 |         "ArrowRight" => Some(Right),
    |                              ^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::MouseButton::Right;
    |
5   | use event::VirtualKeyCode::Right;
    |
5   | use std::fmt::Alignment::Right;
    |
5   | use std::fmt::rt::v1::Alignment::Right;
    |

error[E0425]: cannot find value `Up` in this scope
   --> src/platform_impl/emscripten/mod.rs:736:27
    |
736 |         "ArrowUp" => Some(Up),
    |                           ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Up;
    |

error[E0425]: cannot find value `Back` in this scope
   --> src/platform_impl/emscripten/mod.rs:742:29
    |
742 |         "Backspace" => Some(Back),
    |                             ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Back;
    |

error[E0425]: cannot find value `Insert` in this scope
   --> src/platform_impl/emscripten/mod.rs:750:26
    |
750 |         "Insert" => Some(Insert),
    |                          ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Insert;
    |

error[E0425]: cannot find value `Escape` in this scope
   --> src/platform_impl/emscripten/mod.rs:760:26
    |
760 |         "Escape" => Some(Escape),
    |                          ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Escape;
    |

error[E0425]: cannot find value `Pause` in this scope
   --> src/platform_impl/emscripten/mod.rs:765:25
    |
765 |         "Pause" => Some(Pause),
    |                         ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Pause;
    |

error[E0425]: cannot find value `Power` in this scope
   --> src/platform_impl/emscripten/mod.rs:776:25
    |
776 |         "Power" => Some(Power),
    |                         ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Power;
    |

error[E0425]: cannot find value `Snapshot` in this scope
   --> src/platform_impl/emscripten/mod.rs:778:31
    |
778 |         "PrintScreen" => Some(Snapshot),
    |                               ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Snapshot;
    |

error[E0425]: cannot find value `Sleep` in this scope
   --> src/platform_impl/emscripten/mod.rs:780:27
    |
780 |         "Standby" => Some(Sleep),
    |                           ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Sleep;
    |

error[E0425]: cannot find value `Wake` in this scope
   --> src/platform_impl/emscripten/mod.rs:781:26
    |
781 |         "WakeUp" => Some(Wake),
    |                          ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Wake;
    |

error[E0425]: cannot find value `Compose` in this scope
   --> src/platform_impl/emscripten/mod.rs:786:27
    |
786 |         "Compose" => Some(Compose),
    |                           ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Compose;
    |

error[E0425]: cannot find value `Convert` in this scope
   --> src/platform_impl/emscripten/mod.rs:787:27
    |
787 |         "Convert" => Some(Convert),
    |                           ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Convert;
    |

error[E0425]: cannot find value `Kana` in this scope
   --> src/platform_impl/emscripten/mod.rs:809:28
    |
809 |         "KanaMode" => Some(Kana),
    |                            ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Kana;
    |

error[E0425]: cannot find value `Kanji` in this scope
   --> src/platform_impl/emscripten/mod.rs:810:29
    |
810 |         "KanjiMode" => Some(Kanji),
    |                             ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Kanji;
    |

error[E0425]: cannot find value `F1` in this scope
   --> src/platform_impl/emscripten/mod.rs:815:22
    |
815 |         "F1" => Some(F1),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F1;
    |

error[E0425]: cannot find value `F2` in this scope
   --> src/platform_impl/emscripten/mod.rs:816:22
    |
816 |         "F2" => Some(F2),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F2;
    |

error[E0425]: cannot find value `F3` in this scope
   --> src/platform_impl/emscripten/mod.rs:817:22
    |
817 |         "F3" => Some(F3),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F3;
    |

error[E0425]: cannot find value `F4` in this scope
   --> src/platform_impl/emscripten/mod.rs:818:22
    |
818 |         "F4" => Some(F4),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F4;
    |

error[E0425]: cannot find value `F5` in this scope
   --> src/platform_impl/emscripten/mod.rs:819:22
    |
819 |         "F5" => Some(F5),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F5;
    |

error[E0425]: cannot find value `F6` in this scope
   --> src/platform_impl/emscripten/mod.rs:820:22
    |
820 |         "F6" => Some(F6),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F6;
    |

error[E0425]: cannot find value `F7` in this scope
   --> src/platform_impl/emscripten/mod.rs:821:22
    |
821 |         "F7" => Some(F7),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F7;
    |

error[E0425]: cannot find value `F8` in this scope
   --> src/platform_impl/emscripten/mod.rs:822:22
    |
822 |         "F8" => Some(F8),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F8;
    |

error[E0425]: cannot find value `F9` in this scope
   --> src/platform_impl/emscripten/mod.rs:823:22
    |
823 |         "F9" => Some(F9),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F9;
    |

error[E0425]: cannot find value `F10` in this scope
   --> src/platform_impl/emscripten/mod.rs:824:23
    |
824 |         "F10" => Some(F10),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F10;
    |

error[E0425]: cannot find value `F11` in this scope
   --> src/platform_impl/emscripten/mod.rs:825:23
    |
825 |         "F11" => Some(F11),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F11;
    |

error[E0425]: cannot find value `F12` in this scope
   --> src/platform_impl/emscripten/mod.rs:826:23
    |
826 |         "F12" => Some(F12),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F12;
    |

error[E0425]: cannot find value `F13` in this scope
   --> src/platform_impl/emscripten/mod.rs:827:23
    |
827 |         "F13" => Some(F13),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F13;
    |

error[E0425]: cannot find value `F14` in this scope
   --> src/platform_impl/emscripten/mod.rs:828:23
    |
828 |         "F14" => Some(F14),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F14;
    |

error[E0425]: cannot find value `F15` in this scope
   --> src/platform_impl/emscripten/mod.rs:829:23
    |
829 |         "F15" => Some(F15),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F15;
    |

error[E0425]: cannot find value `F16` in this scope
   --> src/platform_impl/emscripten/mod.rs:830:23
    |
830 |         "F16" => Some(F16),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F16;
    |

error[E0425]: cannot find value `F17` in this scope
   --> src/platform_impl/emscripten/mod.rs:831:23
    |
831 |         "F17" => Some(F17),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F17;
    |

error[E0425]: cannot find value `F18` in this scope
   --> src/platform_impl/emscripten/mod.rs:832:23
    |
832 |         "F18" => Some(F18),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F18;
    |

error[E0425]: cannot find value `F19` in this scope
   --> src/platform_impl/emscripten/mod.rs:833:23
    |
833 |         "F19" => Some(F19),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F19;
    |

error[E0425]: cannot find value `F20` in this scope
   --> src/platform_impl/emscripten/mod.rs:834:23
    |
834 |         "F20" => Some(F20),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F20;
    |

error[E0425]: cannot find value `F21` in this scope
   --> src/platform_impl/emscripten/mod.rs:835:23
    |
835 |         "F21" => Some(F21),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F21;
    |

error[E0425]: cannot find value `F22` in this scope
   --> src/platform_impl/emscripten/mod.rs:836:23
    |
836 |         "F22" => Some(F22),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F22;
    |

error[E0425]: cannot find value `F23` in this scope
   --> src/platform_impl/emscripten/mod.rs:837:23
    |
837 |         "F23" => Some(F23),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F23;
    |

error[E0425]: cannot find value `F24` in this scope
   --> src/platform_impl/emscripten/mod.rs:838:23
    |
838 |         "F24" => Some(F24),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F24;
    |

error[E0425]: cannot find value `PlayPause` in this scope
   --> src/platform_impl/emscripten/mod.rs:862:34
    |
862 |         "MediaPlayPause" => Some(PlayPause),
    |                                  ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::PlayPause;
    |

error[E0425]: cannot find value `MediaStop` in this scope
   --> src/platform_impl/emscripten/mod.rs:865:29
    |
865 |         "MediaStop" => Some(MediaStop),
    |                             ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::MediaStop;
    |

error[E0425]: cannot find value `NextTrack` in this scope
   --> src/platform_impl/emscripten/mod.rs:866:34
    |
866 |         "MediaTrackNext" => Some(NextTrack),
    |                                  ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::NextTrack;
    |

error[E0425]: cannot find value `PrevTrack` in this scope
   --> src/platform_impl/emscripten/mod.rs:867:38
    |
867 |         "MediaTrackPrevious" => Some(PrevTrack),
    |                                      ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::PrevTrack;
    |

error[E0425]: cannot find value `VolumeDown` in this scope
   --> src/platform_impl/emscripten/mod.rs:881:35
    |
881 |         "AudioVolumeDown" => Some(VolumeDown),
    |                                   ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::VolumeDown;
    |

error[E0425]: cannot find value `Mute` in this scope
   --> src/platform_impl/emscripten/mod.rs:882:35
    |
882 |         "AudioVolumeMute" => Some(Mute),
    |                                   ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Mute;
    |

error[E0425]: cannot find value `VolumeUp` in this scope
   --> src/platform_impl/emscripten/mod.rs:883:33
    |
883 |         "AudioVolumeUp" => Some(VolumeUp),
    |                                 ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::VolumeUp;
    |

error[E0425]: cannot find value `Calculator` in this scope
    --> src/platform_impl/emscripten/mod.rs:1007:36
     |
1007 |         "LaunchCalculator" => Some(Calculator),
     |                                    ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Calculator;
     |

error[E0425]: cannot find value `Mail` in this scope
    --> src/platform_impl/emscripten/mod.rs:1010:30
     |
1010 |         "LaunchMail" => Some(Mail),
     |                              ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Mail;
     |

error[E0425]: cannot find value `MyComputer` in this scope
    --> src/platform_impl/emscripten/mod.rs:1013:36
     |
1013 |         "LaunchMyComputer" => Some(MyComputer),
     |                                    ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::MyComputer;
     |

error[E0425]: cannot find value `WebBack` in this scope
    --> src/platform_impl/emscripten/mod.rs:1036:31
     |
1036 |         "BrowserBack" => Some(WebBack),
     |                               ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebBack;
     |

error[E0425]: cannot find value `WebFavorites` in this scope
    --> src/platform_impl/emscripten/mod.rs:1037:36
     |
1037 |         "BrowserFavorites" => Some(WebFavorites),
     |                                    ^^^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebFavorites;
     |

error[E0425]: cannot find value `WebForward` in this scope
    --> src/platform_impl/emscripten/mod.rs:1038:34
     |
1038 |         "BrowserForward" => Some(WebForward),
     |                                  ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebForward;
     |

error[E0425]: cannot find value `WebHome` in this scope
    --> src/platform_impl/emscripten/mod.rs:1039:31
     |
1039 |         "BrowserHome" => Some(WebHome),
     |                               ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebHome;
     |

error[E0425]: cannot find value `WebRefresh` in this scope
    --> src/platform_impl/emscripten/mod.rs:1040:34
     |
1040 |         "BrowserRefresh" => Some(WebRefresh),
     |                                  ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebRefresh;
     |

error[E0425]: cannot find value `WebSearch` in this scope
    --> src/platform_impl/emscripten/mod.rs:1041:33
     |
1041 |         "BrowserSearch" => Some(WebSearch),
     |                                 ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebSearch;
     |

error[E0425]: cannot find value `WebStop` in this scope
    --> src/platform_impl/emscripten/mod.rs:1042:31
     |
1042 |         "BrowserStop" => Some(WebStop),
     |                               ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebStop;
     |

error[E0425]: cannot find value `Decimal` in this scope
    --> src/platform_impl/emscripten/mod.rs:1044:27
     |
1044 |         "Decimal" => Some(Decimal),
     |                           ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Decimal;
     |

error[E0425]: cannot find value `Multiply` in this scope
    --> src/platform_impl/emscripten/mod.rs:1047:34
     |
1047 |         "Multiply" | "*" => Some(Multiply),
     |                                  ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Multiply;
     |

error[E0425]: cannot find value `Add` in this scope
    --> src/platform_impl/emscripten/mod.rs:1048:29
     |
1048 |         "Add" | "+" => Some(Add),
     |                             ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Add;
     |

error[E0425]: cannot find value `Divide` in this scope
    --> src/platform_impl/emscripten/mod.rs:1050:26
     |
1050 |         "Divide" => Some(Divide),
     |                          ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Divide;
     |

error[E0425]: cannot find value `Subtract` in this scope
    --> src/platform_impl/emscripten/mod.rs:1051:34
     |
1051 |         "Subtract" | "-" => Some(Subtract),
     |                                  ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Subtract;
     |

error[E0425]: cannot find value `Numpad0` in this scope
    --> src/platform_impl/emscripten/mod.rs:1054:50
     |
1054 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad0),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad0;
     |

error[E0425]: cannot find value `Key0` in this scope
    --> src/platform_impl/emscripten/mod.rs:1055:23
     |
1055 |             _ => Some(Key0),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key0;
     |

error[E0425]: cannot find value `Numpad1` in this scope
    --> src/platform_impl/emscripten/mod.rs:1058:50
     |
1058 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad1),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad1;
     |

error[E0425]: cannot find value `Key1` in this scope
    --> src/platform_impl/emscripten/mod.rs:1059:23
     |
1059 |             _ => Some(Key1),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key1;
     |

error[E0425]: cannot find value `Numpad2` in this scope
    --> src/platform_impl/emscripten/mod.rs:1062:50
     |
1062 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad2),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad2;
     |

error[E0425]: cannot find value `Key2` in this scope
    --> src/platform_impl/emscripten/mod.rs:1063:23
     |
1063 |             _ => Some(Key2),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key2;
     |

error[E0425]: cannot find value `Numpad3` in this scope
    --> src/platform_impl/emscripten/mod.rs:1066:50
     |
1066 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad3),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad3;
     |

error[E0425]: cannot find value `Key3` in this scope
    --> src/platform_impl/emscripten/mod.rs:1067:23
     |
1067 |             _ => Some(Key3),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key3;
     |

error[E0425]: cannot find value `Numpad4` in this scope
    --> src/platform_impl/emscripten/mod.rs:1070:50
     |
1070 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad4),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad4;
     |

error[E0425]: cannot find value `Key4` in this scope
    --> src/platform_impl/emscripten/mod.rs:1071:23
     |
1071 |             _ => Some(Key4),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key4;
     |

error[E0425]: cannot find value `Numpad5` in this scope
    --> src/platform_impl/emscripten/mod.rs:1074:50
     |
1074 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad5),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad5;
     |

error[E0425]: cannot find value `Key5` in this scope
    --> src/platform_impl/emscripten/mod.rs:1075:23
     |
1075 |             _ => Some(Key5),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key5;
     |

error[E0425]: cannot find value `Numpad6` in this scope
    --> src/platform_impl/emscripten/mod.rs:1078:50
     |
1078 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad6),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad6;
     |

error[E0425]: cannot find value `Key6` in this scope
    --> src/platform_impl/emscripten/mod.rs:1079:23
     |
1079 |             _ => Some(Key6),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key6;
     |

error[E0425]: cannot find value `Numpad7` in this scope
    --> src/platform_impl/emscripten/mod.rs:1082:50
     |
1082 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad7),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad7;
     |

error[E0425]: cannot find value `Key7` in this scope
    --> src/platform_impl/emscripten/mod.rs:1083:23
     |
1083 |             _ => Some(Key7),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key7;
     |

error[E0425]: cannot find value `Numpad8` in this scope
    --> src/platform_impl/emscripten/mod.rs:1086:50
     |
1086 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad8),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad8;
     |

error[E0425]: cannot find value `Key8` in this scope
    --> src/platform_impl/emscripten/mod.rs:1087:23
     |
1087 |             _ => Some(Key8),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key8;
     |

error[E0425]: cannot find value `Numpad9` in this scope
    --> src/platform_impl/emscripten/mod.rs:1090:50
     |
1090 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad9),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad9;
     |

error[E0425]: cannot find value `Key9` in this scope
    --> src/platform_impl/emscripten/mod.rs:1091:23
     |
1091 |             _ => Some(Key9),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key9;
     |

error[E0425]: cannot find value `A` in this scope
    --> src/platform_impl/emscripten/mod.rs:1094:27
     |
1094 |         "A" | "a" => Some(A),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::A;
     |

error[E0425]: cannot find value `B` in this scope
    --> src/platform_impl/emscripten/mod.rs:1095:27
     |
1095 |         "B" | "b" => Some(B),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::B;
     |

error[E0425]: cannot find value `C` in this scope
    --> src/platform_impl/emscripten/mod.rs:1096:27
     |
1096 |         "C" | "c" => Some(C),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::C;
     |

error[E0425]: cannot find value `D` in this scope
    --> src/platform_impl/emscripten/mod.rs:1097:27
     |
1097 |         "D" | "d" => Some(D),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::D;
     |

error[E0425]: cannot find value `E` in this scope
    --> src/platform_impl/emscripten/mod.rs:1098:27
     |
1098 |         "E" | "e" => Some(E),
     |                           ^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
     |
5    | use event::VirtualKeyCode::E;
     |
5    | use std::f32::consts::E;
     |
5    | use std::f64::consts::E;
     |

error[E0425]: cannot find value `F` in this scope
    --> src/platform_impl/emscripten/mod.rs:1099:27
     |
1099 |         "F" | "f" => Some(F),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::F;
     |

error[E0425]: cannot find value `G` in this scope
    --> src/platform_impl/emscripten/mod.rs:1100:27
     |
1100 |         "G" | "g" => Some(G),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::G;
     |

error[E0425]: cannot find value `H` in this scope
    --> src/platform_impl/emscripten/mod.rs:1101:27
     |
1101 |         "H" | "h" => Some(H),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::H;
     |

error[E0425]: cannot find value `I` in this scope
    --> src/platform_impl/emscripten/mod.rs:1102:27
     |
1102 |         "I" | "i" => Some(I),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::I;
     |

error[E0425]: cannot find value `J` in this scope
    --> src/platform_impl/emscripten/mod.rs:1103:27
     |
1103 |         "J" | "j" => Some(J),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::J;
     |

error[E0425]: cannot find value `K` in this scope
    --> src/platform_impl/emscripten/mod.rs:1104:27
     |
1104 |         "K" | "k" => Some(K),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::K;
     |

error[E0425]: cannot find value `L` in this scope
    --> src/platform_impl/emscripten/mod.rs:1105:27
     |
1105 |         "L" | "l" => Some(L),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::L;
     |

error[E0425]: cannot find value `M` in this scope
    --> src/platform_impl/emscripten/mod.rs:1106:27
     |
1106 |         "M" | "m" => Some(M),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::M;
     |

error[E0425]: cannot find value `N` in this scope
    --> src/platform_impl/emscripten/mod.rs:1107:27
     |
1107 |         "N" | "n" => Some(N),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::N;
     |

error[E0425]: cannot find value `O` in this scope
    --> src/platform_impl/emscripten/mod.rs:1108:27
     |
1108 |         "O" | "o" => Some(O),
     |                           ^
help: a tuple variant with a similar name exists
     |
1108 |         "O" | "o" => Some(Ok),
     |                           ^^
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::O;
     |

error[E0425]: cannot find value `P` in this scope
    --> src/platform_impl/emscripten/mod.rs:1109:27
     |
1109 |         "P" | "p" => Some(P),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::P;
     |

error[E0425]: cannot find value `Q` in this scope
    --> src/platform_impl/emscripten/mod.rs:1110:27
     |
1110 |         "Q" | "q" => Some(Q),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Q;
     |

error[E0425]: cannot find value `R` in this scope
    --> src/platform_impl/emscripten/mod.rs:1111:27
     |
1111 |         "R" | "r" => Some(R),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::R;
     |

error[E0425]: cannot find value `S` in this scope
    --> src/platform_impl/emscripten/mod.rs:1112:27
     |
1112 |         "S" | "s" => Some(S),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::S;
     |

error[E0425]: cannot find value `T` in this scope
    --> src/platform_impl/emscripten/mod.rs:1113:27
     |
1113 |         "T" | "t" => Some(T),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::T;
     |

error[E0425]: cannot find value `U` in this scope
    --> src/platform_impl/emscripten/mod.rs:1114:27
     |
1114 |         "U" | "u" => Some(U),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::U;
     |

error[E0425]: cannot find value `V` in this scope
    --> src/platform_impl/emscripten/mod.rs:1115:27
     |
1115 |         "V" | "v" => Some(V),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::V;
     |

error[E0425]: cannot find value `W` in this scope
    --> src/platform_impl/emscripten/mod.rs:1116:27
     |
1116 |         "W" | "w" => Some(W),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::W;
     |

error[E0425]: cannot find value `X` in this scope
    --> src/platform_impl/emscripten/mod.rs:1117:27
     |
1117 |         "X" | "x" => Some(X),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::X;
     |

error[E0425]: cannot find value `Y` in this scope
    --> src/platform_impl/emscripten/mod.rs:1118:27
     |
1118 |         "Y" | "y" => Some(Y),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Y;
     |

error[E0425]: cannot find value `Z` in this scope
    --> src/platform_impl/emscripten/mod.rs:1119:27
     |
1119 |         "Z" | "z" => Some(Z),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Z;
     |

error[E0425]: cannot find value `Apostrophe` in this scope
    --> src/platform_impl/emscripten/mod.rs:1121:21
     |
1121 |         "'" => Some(Apostrophe),
     |                     ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Apostrophe;
     |

error[E0425]: cannot find value `Backslash` in this scope
    --> src/platform_impl/emscripten/mod.rs:1122:22
     |
1122 |         "\\" => Some(Backslash),
     |                      ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Backslash;
     |

error[E0425]: cannot find value `Colon` in this scope
    --> src/platform_impl/emscripten/mod.rs:1123:21
     |
1123 |         ":" => Some(Colon),
     |                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Colon;
     |

error[E0425]: cannot find value `NumpadComma` in this scope
    --> src/platform_impl/emscripten/mod.rs:1125:50
     |
1125 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(NumpadComma),
     |                                                  ^^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::NumpadComma;
     |

error[E0425]: cannot find value `Comma` in this scope
    --> src/platform_impl/emscripten/mod.rs:1126:23
     |
1126 |             _ => Some(Comma),
     |                       ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Comma;
     |

error[E0425]: cannot find value `NumpadEquals` in this scope
    --> src/platform_impl/emscripten/mod.rs:1129:50
     |
1129 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(NumpadEquals),
     |                                                  ^^^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::NumpadEquals;
     |

error[E0425]: cannot find value `Equals` in this scope
    --> src/platform_impl/emscripten/mod.rs:1130:23
     |
1130 |             _ => Some(Equals),
     |                       ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Equals;
     |

error[E0425]: cannot find value `LBracket` in this scope
    --> src/platform_impl/emscripten/mod.rs:1132:21
     |
1132 |         "{" => Some(LBracket),
     |                     ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::LBracket;
     |

error[E0425]: cannot find value `Period` in this scope
    --> src/platform_impl/emscripten/mod.rs:1133:21
     |
1133 |         "." => Some(Period),
     |                     ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Period;
     |

error[E0425]: cannot find value `RBracket` in this scope
    --> src/platform_impl/emscripten/mod.rs:1134:21
     |
1134 |         "}" => Some(RBracket),
     |                     ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::RBracket;
     |

error[E0425]: cannot find value `Semicolon` in this scope
    --> src/platform_impl/emscripten/mod.rs:1135:21
     |
1135 |         ";" => Some(Semicolon),
     |                     ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Semicolon;
     |

error[E0425]: cannot find value `Slash` in this scope
    --> src/platform_impl/emscripten/mod.rs:1136:21
     |
1136 |         "/" => Some(Slash),
     |                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Slash;
     |

error[E0603]: struct `MonitorHandle` is private
  --> src/platform_impl/emscripten/mod.rs:13:13
   |
13 | use window::MonitorHandle as RootMonitorHandle;
   |             ^^^^^^^^^^^^^

warning: unused `#[macro_use]` import
  --> src/lib.rs:82:1
   |
82 | #[macro_use]
   | ^^^^^^^^^^^^
   |
   = note: #[warn(unused_imports)] on by default

warning: unused import: `VirtualKeyCode::*`
   --> src/platform_impl/emscripten/mod.rs:697:9
    |
697 |     use VirtualKeyCode::*;
    |         ^^^^^^^^^^^^^^^^^

error[E0107]: wrong number of type arguments: expected 0, found 1
  --> src/event_loop.rs:34:53
   |
34 |     pub(crate) event_loop: platform_impl::EventLoop<T>,
   |                                                     ^ unexpected type argument

error[E0107]: wrong number of type arguments: expected 0, found 1
   --> src/event_loop.rs:167:53
    |
167 |     event_loop_proxy: platform_impl::EventLoopProxy<T>,
    |                                                     ^ unexpected type argument

error: aborting due to 204 previous errors

Some errors occurred: E0107, E0412, E0422, E0425, E0432, E0433, E0603.
For more information about an error, try `rustc --explain E0107`.
error: Could not compile `winit`.

To learn more, run the command again with --verbose.

but so does cargo build --target wasm32-unknown-emscripten on eventloop-2.0 branch:

error[E0432]: unresolved import `VirtualKeyCode`
   --> src/platform_impl/emscripten/mod.rs:697:9
    |
697 |     use VirtualKeyCode::*;
    |         ^^^^^^^^^^^^^^ maybe a missing `extern crate VirtualKeyCode;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:216:51
    |
216 |                 queue.lock().unwrap().push_back(::Event::WindowEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate WindowEvent;`?
   --> src/platform_impl/emscripten/mod.rs:218:30
    |
218 |                     event: ::WindowEvent::CursorMoved {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate WindowEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:224:51
    |
224 |                 queue.lock().unwrap().push_back(::Event::DeviceEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate DeviceEvent;`?
   --> src/platform_impl/emscripten/mod.rs:226:30
    |
226 |                     event: ::DeviceEvent::MouseMotion {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate DeviceEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate MouseButton;`?
   --> src/platform_impl/emscripten/mod.rs:234:28
    |
234 |                     0 => ::MouseButton::Left,
    |                            ^^^^^^^^^^^ maybe a missing `extern crate MouseButton;`?

error[E0433]: failed to resolve: maybe a missing `extern crate MouseButton;`?
   --> src/platform_impl/emscripten/mod.rs:235:28
    |
235 |                     1 => ::MouseButton::Middle,
    |                            ^^^^^^^^^^^ maybe a missing `extern crate MouseButton;`?

error[E0433]: failed to resolve: maybe a missing `extern crate MouseButton;`?
   --> src/platform_impl/emscripten/mod.rs:236:28
    |
236 |                     2 => ::MouseButton::Right,
    |                            ^^^^^^^^^^^ maybe a missing `extern crate MouseButton;`?

error[E0433]: failed to resolve: maybe a missing `extern crate MouseButton;`?
   --> src/platform_impl/emscripten/mod.rs:237:32
    |
237 |                     other => ::MouseButton::Other(other as u8),
    |                                ^^^^^^^^^^^ maybe a missing `extern crate MouseButton;`?

error[E0433]: failed to resolve: maybe a missing `extern crate ElementState;`?
   --> src/platform_impl/emscripten/mod.rs:240:58
    |
240 |                     ffi::EMSCRIPTEN_EVENT_MOUSEDOWN => ::ElementState::Pressed,
    |                                                          ^^^^^^^^^^^^ maybe a missing `extern crate ElementState;`?

error[E0433]: failed to resolve: maybe a missing `extern crate ElementState;`?
   --> src/platform_impl/emscripten/mod.rs:241:56
    |
241 |                     ffi::EMSCRIPTEN_EVENT_MOUSEUP => ::ElementState::Released,
    |                                                        ^^^^^^^^^^^^ maybe a missing `extern crate ElementState;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:244:51
    |
244 |                 queue.lock().unwrap().push_back(::Event::WindowEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate WindowEvent;`?
   --> src/platform_impl/emscripten/mod.rs:246:30
    |
246 |                     event: ::WindowEvent::MouseInput {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate WindowEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:278:51
    |
278 |                 queue.lock().unwrap().push_back(::Event::WindowEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate WindowEvent;`?
   --> src/platform_impl/emscripten/mod.rs:280:30
    |
280 |                     event: ::WindowEvent::KeyboardInput {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate WindowEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate ElementState;`?
   --> src/platform_impl/emscripten/mod.rs:284:38
    |
284 |                             state: ::ElementState::Pressed,
    |                                      ^^^^^^^^^^^^ maybe a missing `extern crate ElementState;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:292:51
    |
292 |                 queue.lock().unwrap().push_back(::Event::WindowEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate WindowEvent;`?
   --> src/platform_impl/emscripten/mod.rs:294:30
    |
294 |                     event: ::WindowEvent::KeyboardInput {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate WindowEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate ElementState;`?
   --> src/platform_impl/emscripten/mod.rs:298:38
    |
298 |                             state: ::ElementState::Released,
    |                                      ^^^^^^^^^^^^ maybe a missing `extern crate ElementState;`?

error[E0433]: failed to resolve: maybe a missing `extern crate TouchPhase;`?
   --> src/platform_impl/emscripten/mod.rs:321:51
    |
321 |             ffi::EMSCRIPTEN_EVENT_TOUCHSTART => ::TouchPhase::Started,
    |                                                   ^^^^^^^^^^ maybe a missing `extern crate TouchPhase;`?

error[E0433]: failed to resolve: maybe a missing `extern crate TouchPhase;`?
   --> src/platform_impl/emscripten/mod.rs:322:49
    |
322 |             ffi::EMSCRIPTEN_EVENT_TOUCHEND => ::TouchPhase::Ended,
    |                                                 ^^^^^^^^^^ maybe a missing `extern crate TouchPhase;`?

error[E0433]: failed to resolve: maybe a missing `extern crate TouchPhase;`?
   --> src/platform_impl/emscripten/mod.rs:323:50
    |
323 |             ffi::EMSCRIPTEN_EVENT_TOUCHMOVE => ::TouchPhase::Moved,
    |                                                  ^^^^^^^^^^ maybe a missing `extern crate TouchPhase;`?

error[E0433]: failed to resolve: maybe a missing `extern crate TouchPhase;`?
   --> src/platform_impl/emscripten/mod.rs:324:52
    |
324 |             ffi::EMSCRIPTEN_EVENT_TOUCHCANCEL => ::TouchPhase::Cancelled,
    |                                                    ^^^^^^^^^^ maybe a missing `extern crate TouchPhase;`?

error[E0433]: failed to resolve: maybe a missing `extern crate Event;`?
   --> src/platform_impl/emscripten/mod.rs:336:51
    |
336 |                 queue.lock().unwrap().push_back(::Event::WindowEvent {
    |                                                   ^^^^^ maybe a missing `extern crate Event;`?

error[E0433]: failed to resolve: maybe a missing `extern crate WindowEvent;`?
   --> src/platform_impl/emscripten/mod.rs:338:30
    |
338 |                     event: ::WindowEvent::Touch(::Touch {
    |                              ^^^^^^^^^^^ maybe a missing `extern crate WindowEvent;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:386:26
    |
386 |             return Err(::CreationError::OsError("Cannot create another window".to_owned()));
    |                          ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:404:32
    |
404 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:406:32
    |
406 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:408:32
    |
408 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:410:32
    |
410 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:412:32
    |
412 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:414:32
    |
414 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:416:32
    |
416 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:418:32
    |
418 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:420:32
    |
420 |                 .map_err(|e| ::CreationError::OsError(format!("emscripten error: {}", e)))?;
    |                                ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:426:36
    |
426 |                     .map_err(|e| ::CreationError::OsError(e))?;
    |                                    ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0433]: failed to resolve: maybe a missing `extern crate CreationError;`?
   --> src/platform_impl/emscripten/mod.rs:428:36
    |
428 |                     .map_err(|e| ::CreationError::OsError(e))?;
    |                                    ^^^^^^^^^^^^^ maybe a missing `extern crate CreationError;`?

error[E0412]: cannot find type `EventLoopWindowTarget` in module `platform_impl`
  --> src/event_loop.rs:44:34
   |
44 |     pub(crate) p: platform_impl::EventLoopWindowTarget<T>,
   |                                  ^^^^^^^^^^^^^^^^^^^^^ not found in `platform_impl`
help: possible candidate is found in another module, you can import it into scope
   |
12 | use event_loop::EventLoopWindowTarget;
   |

error[E0412]: cannot find type `EventLoopClosed` in the crate root
  --> src/platform_impl/emscripten/mod.rs:87:42
   |
87 |     pub fn wakeup(&self) -> Result<(), ::EventLoopClosed> {
   |                                          ^^^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
   |
5  | use event_loop::EventLoopClosed;
   |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:128:26
    |
128 |         where F: FnMut(::Event)
    |                          ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:139:26
    |
139 |         where F: FnMut(::Event) -> ::ControlFlow
    |                          ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0412]: cannot find type `ControlFlow` in the crate root
   --> src/platform_impl/emscripten/mod.rs:139:38
    |
139 |         where F: FnMut(::Event) -> ::ControlFlow
    |                                      ^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event_loop::ControlFlow;
    |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:168:34
    |
168 |     events: Box<Mutex<VecDeque<::Event>>>,
    |                                  ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:200:38
    |
200 |         let queue: &Mutex<VecDeque<::Event>> = mem::transmute(event_queue);
    |                                      ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0422]: cannot find struct, variant or union type `ModifiersState` in the crate root
   --> src/platform_impl/emscripten/mod.rs:202:27
    |
202 |         let modifiers = ::ModifiersState {
    |                           ^^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::ModifiersState;
    |

error[E0425]: cannot find function `WindowId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:217:34
    |
217 |                     window_id: ::WindowId(WindowId(0)),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use platform_impl::platform::WindowId;
    |
5   | use window::WindowId;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:219:38
    |
219 |                         device_id: ::DeviceId(DeviceId),
    |                                      ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:225:34
    |
225 |                     device_id: ::DeviceId(DeviceId),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0425]: cannot find function `WindowId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:245:34
    |
245 |                     window_id: ::WindowId(WindowId(0)),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use platform_impl::platform::WindowId;
    |
5   | use window::WindowId;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:247:38
    |
247 |                         device_id: ::DeviceId(DeviceId),
    |                                      ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:267:38
    |
267 |         let queue: &Mutex<VecDeque<::Event>> = mem::transmute(event_queue);
    |                                      ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0422]: cannot find struct, variant or union type `ModifiersState` in the crate root
   --> src/platform_impl/emscripten/mod.rs:269:27
    |
269 |         let modifiers = ::ModifiersState {
    |                           ^^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::ModifiersState;
    |

error[E0425]: cannot find function `WindowId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:279:34
    |
279 |                     window_id: ::WindowId(WindowId(0)),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use platform_impl::platform::WindowId;
    |
5   | use window::WindowId;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:281:38
    |
281 |                         device_id: ::DeviceId(DeviceId),
    |                                      ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0422]: cannot find struct, variant or union type `KeyboardInput` in the crate root
   --> src/platform_impl/emscripten/mod.rs:282:34
    |
282 |                         input: ::KeyboardInput {
    |                                  ^^^^^^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::KeyboardInput;
    |
5   | use event::WindowEvent::KeyboardInput;
    |

error[E0425]: cannot find function `WindowId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:293:34
    |
293 |                     window_id: ::WindowId(WindowId(0)),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use platform_impl::platform::WindowId;
    |
5   | use window::WindowId;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:295:38
    |
295 |                         device_id: ::DeviceId(DeviceId),
    |                                      ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0422]: cannot find struct, variant or union type `KeyboardInput` in the crate root
   --> src/platform_impl/emscripten/mod.rs:296:34
    |
296 |                         input: ::KeyboardInput {
    |                                  ^^^^^^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::KeyboardInput;
    |
5   | use event::WindowEvent::KeyboardInput;
    |

error[E0412]: cannot find type `Event` in the crate root
   --> src/platform_impl/emscripten/mod.rs:318:38
    |
318 |         let queue: &Mutex<VecDeque<::Event>> = mem::transmute(event_queue);
    |                                      ^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::Event;
    |

error[E0425]: cannot find function `WindowId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:337:34
    |
337 |                     window_id: ::WindowId(WindowId(0)),
    |                                  ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use platform_impl::platform::WindowId;
    |
5   | use window::WindowId;
    |

error[E0422]: cannot find struct, variant or union type `Touch` in the crate root
   --> src/platform_impl/emscripten/mod.rs:338:51
    |
338 |                     event: ::WindowEvent::Touch(::Touch {
    |                                                   ^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::Touch;
    |
5   | use event::WindowEvent::Touch;
    |

error[E0425]: cannot find function `DeviceId` in the crate root
   --> src/platform_impl/emscripten/mod.rs:339:38
    |
339 |                         device_id: ::DeviceId(DeviceId),
    |                                      ^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::DeviceId;
    |
5   | use platform_impl::platform::DeviceId;
    |

error[E0412]: cannot find type `WindowAttributes` in the crate root
   --> src/platform_impl/emscripten/mod.rs:381:51
    |
381 |     pub fn new(event_loop: &EventLoop, attribs: ::WindowAttributes,
    |                                                   ^^^^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use window::WindowAttributes;
    |

error[E0412]: cannot find type `CreationError` in the crate root
   --> src/platform_impl/emscripten/mod.rs:383:29
    |
383 |         -> Result<Window, ::CreationError>
    |                             ^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use window::CreationError;
    |

error[E0412]: cannot find type `MouseCursor` in the crate root
   --> src/platform_impl/emscripten/mod.rs:525:41
    |
525 |     pub fn set_cursor(&self, _cursor: ::MouseCursor) {
    |                                         ^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use window::MouseCursor;
    |

error[E0412]: cannot find type `MonitorHandle` in the crate root
   --> src/platform_impl/emscripten/mod.rs:584:46
    |
584 |     pub fn get_fullscreen(&self) -> Option<::MonitorHandle> {
    |                                              ^^^^^^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use monitor::MonitorHandle;
    |
5   | use platform_impl::platform::MonitorHandle;
    |

error[E0412]: cannot find type `MonitorHandle` in the crate root
   --> src/platform_impl/emscripten/mod.rs:589:53
    |
589 |     pub fn set_fullscreen(&self, _monitor: Option<::MonitorHandle>) {
    |                                                     ^^^^^^^^^^^^^ not found in the crate root
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use monitor::MonitorHandle;
    |
5   | use platform_impl::platform::MonitorHandle;
    |

error[E0412]: cannot find type `Icon` in the crate root
   --> src/platform_impl/emscripten/mod.rs:604:51
    |
604 |     pub fn set_window_icon(&self, _icon: Option<::Icon>) {
    |                                                   ^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use icon::Icon;
    |

error[E0412]: cannot find type `VirtualKeyCode` in the crate root
   --> src/platform_impl/emscripten/mod.rs:689:54
    |
689 |                       location: c_ulong) -> Option<::VirtualKeyCode>
    |                                                      ^^^^^^^^^^^^^^ not found in the crate root
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode;
    |

error[E0425]: cannot find value `LAlt` in this scope
   --> src/platform_impl/emscripten/mod.rs:700:48
    |
700 |             ffi::DOM_KEY_LOCATION_LEFT => Some(LAlt),
    |                                                ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::LAlt;
    |

error[E0425]: cannot find value `RAlt` in this scope
   --> src/platform_impl/emscripten/mod.rs:701:49
    |
701 |             ffi::DOM_KEY_LOCATION_RIGHT => Some(RAlt),
    |                                                 ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::RAlt;
    |

error[E0425]: cannot find value `LControl` in this scope
   --> src/platform_impl/emscripten/mod.rs:707:48
    |
707 |             ffi::DOM_KEY_LOCATION_LEFT => Some(LControl),
    |                                                ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::LControl;
    |

error[E0425]: cannot find value `RControl` in this scope
   --> src/platform_impl/emscripten/mod.rs:708:49
    |
708 |             ffi::DOM_KEY_LOCATION_RIGHT => Some(RControl),
    |                                                 ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::RControl;
    |

error[E0425]: cannot find value `Numlock` in this scope
   --> src/platform_impl/emscripten/mod.rs:715:27
    |
715 |         "NumLock" => Some(Numlock),
    |                           ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Numlock;
    |

error[E0425]: cannot find value `Scroll` in this scope
   --> src/platform_impl/emscripten/mod.rs:716:30
    |
716 |         "ScrollLock" => Some(Scroll),
    |                              ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Scroll;
    |

error[E0425]: cannot find value `LShift` in this scope
   --> src/platform_impl/emscripten/mod.rs:718:48
    |
718 |             ffi::DOM_KEY_LOCATION_LEFT => Some(LShift),
    |                                                ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::LShift;
    |

error[E0425]: cannot find value `RShift` in this scope
   --> src/platform_impl/emscripten/mod.rs:719:49
    |
719 |             ffi::DOM_KEY_LOCATION_RIGHT => Some(RShift),
    |                                                 ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::RShift;
    |

error[E0425]: cannot find value `NumpadEnter` in this scope
   --> src/platform_impl/emscripten/mod.rs:727:50
    |
727 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(NumpadEnter),
    |                                                  ^^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::NumpadEnter;
    |

error[E0425]: cannot find value `Return` in this scope
   --> src/platform_impl/emscripten/mod.rs:728:23
    |
728 |             _ => Some(Return),
    |                       ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Return;
    |

error[E0425]: cannot find value `Tab` in this scope
   --> src/platform_impl/emscripten/mod.rs:730:23
    |
730 |         "Tab" => Some(Tab),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Tab;
    |

error[E0425]: cannot find value `Space` in this scope
   --> src/platform_impl/emscripten/mod.rs:731:21
    |
731 |         " " => Some(Space),
    |                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Space;
    |

error[E0425]: cannot find value `Down` in this scope
   --> src/platform_impl/emscripten/mod.rs:733:29
    |
733 |         "ArrowDown" => Some(Down),
    |                             ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Down;
    |

error[E0425]: cannot find value `Left` in this scope
   --> src/platform_impl/emscripten/mod.rs:734:29
    |
734 |         "ArrowLeft" => Some(Left),
    |                             ^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::MouseButton::Left;
    |
5   | use event::VirtualKeyCode::Left;
    |
5   | use std::fmt::Alignment::Left;
    |
5   | use std::fmt::rt::v1::Alignment::Left;
    |

error[E0425]: cannot find value `Right` in this scope
   --> src/platform_impl/emscripten/mod.rs:735:30
    |
735 |         "ArrowRight" => Some(Right),
    |                              ^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
    |
5   | use event::MouseButton::Right;
    |
5   | use event::VirtualKeyCode::Right;
    |
5   | use std::fmt::Alignment::Right;
    |
5   | use std::fmt::rt::v1::Alignment::Right;
    |

error[E0425]: cannot find value `Up` in this scope
   --> src/platform_impl/emscripten/mod.rs:736:27
    |
736 |         "ArrowUp" => Some(Up),
    |                           ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Up;
    |

error[E0425]: cannot find value `Back` in this scope
   --> src/platform_impl/emscripten/mod.rs:742:29
    |
742 |         "Backspace" => Some(Back),
    |                             ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Back;
    |

error[E0425]: cannot find value `Insert` in this scope
   --> src/platform_impl/emscripten/mod.rs:750:26
    |
750 |         "Insert" => Some(Insert),
    |                          ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Insert;
    |

error[E0425]: cannot find value `Escape` in this scope
   --> src/platform_impl/emscripten/mod.rs:760:26
    |
760 |         "Escape" => Some(Escape),
    |                          ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Escape;
    |

error[E0425]: cannot find value `Pause` in this scope
   --> src/platform_impl/emscripten/mod.rs:765:25
    |
765 |         "Pause" => Some(Pause),
    |                         ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Pause;
    |

error[E0425]: cannot find value `Power` in this scope
   --> src/platform_impl/emscripten/mod.rs:776:25
    |
776 |         "Power" => Some(Power),
    |                         ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Power;
    |

error[E0425]: cannot find value `Snapshot` in this scope
   --> src/platform_impl/emscripten/mod.rs:778:31
    |
778 |         "PrintScreen" => Some(Snapshot),
    |                               ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Snapshot;
    |

error[E0425]: cannot find value `Sleep` in this scope
   --> src/platform_impl/emscripten/mod.rs:780:27
    |
780 |         "Standby" => Some(Sleep),
    |                           ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Sleep;
    |

error[E0425]: cannot find value `Wake` in this scope
   --> src/platform_impl/emscripten/mod.rs:781:26
    |
781 |         "WakeUp" => Some(Wake),
    |                          ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Wake;
    |

error[E0425]: cannot find value `Compose` in this scope
   --> src/platform_impl/emscripten/mod.rs:786:27
    |
786 |         "Compose" => Some(Compose),
    |                           ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Compose;
    |

error[E0425]: cannot find value `Convert` in this scope
   --> src/platform_impl/emscripten/mod.rs:787:27
    |
787 |         "Convert" => Some(Convert),
    |                           ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Convert;
    |

error[E0425]: cannot find value `Kana` in this scope
   --> src/platform_impl/emscripten/mod.rs:809:28
    |
809 |         "KanaMode" => Some(Kana),
    |                            ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Kana;
    |

error[E0425]: cannot find value `Kanji` in this scope
   --> src/platform_impl/emscripten/mod.rs:810:29
    |
810 |         "KanjiMode" => Some(Kanji),
    |                             ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Kanji;
    |

error[E0425]: cannot find value `F1` in this scope
   --> src/platform_impl/emscripten/mod.rs:815:22
    |
815 |         "F1" => Some(F1),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F1;
    |

error[E0425]: cannot find value `F2` in this scope
   --> src/platform_impl/emscripten/mod.rs:816:22
    |
816 |         "F2" => Some(F2),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F2;
    |

error[E0425]: cannot find value `F3` in this scope
   --> src/platform_impl/emscripten/mod.rs:817:22
    |
817 |         "F3" => Some(F3),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F3;
    |

error[E0425]: cannot find value `F4` in this scope
   --> src/platform_impl/emscripten/mod.rs:818:22
    |
818 |         "F4" => Some(F4),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F4;
    |

error[E0425]: cannot find value `F5` in this scope
   --> src/platform_impl/emscripten/mod.rs:819:22
    |
819 |         "F5" => Some(F5),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F5;
    |

error[E0425]: cannot find value `F6` in this scope
   --> src/platform_impl/emscripten/mod.rs:820:22
    |
820 |         "F6" => Some(F6),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F6;
    |

error[E0425]: cannot find value `F7` in this scope
   --> src/platform_impl/emscripten/mod.rs:821:22
    |
821 |         "F7" => Some(F7),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F7;
    |

error[E0425]: cannot find value `F8` in this scope
   --> src/platform_impl/emscripten/mod.rs:822:22
    |
822 |         "F8" => Some(F8),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F8;
    |

error[E0425]: cannot find value `F9` in this scope
   --> src/platform_impl/emscripten/mod.rs:823:22
    |
823 |         "F9" => Some(F9),
    |                      ^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F9;
    |

error[E0425]: cannot find value `F10` in this scope
   --> src/platform_impl/emscripten/mod.rs:824:23
    |
824 |         "F10" => Some(F10),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F10;
    |

error[E0425]: cannot find value `F11` in this scope
   --> src/platform_impl/emscripten/mod.rs:825:23
    |
825 |         "F11" => Some(F11),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F11;
    |

error[E0425]: cannot find value `F12` in this scope
   --> src/platform_impl/emscripten/mod.rs:826:23
    |
826 |         "F12" => Some(F12),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F12;
    |

error[E0425]: cannot find value `F13` in this scope
   --> src/platform_impl/emscripten/mod.rs:827:23
    |
827 |         "F13" => Some(F13),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F13;
    |

error[E0425]: cannot find value `F14` in this scope
   --> src/platform_impl/emscripten/mod.rs:828:23
    |
828 |         "F14" => Some(F14),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F14;
    |

error[E0425]: cannot find value `F15` in this scope
   --> src/platform_impl/emscripten/mod.rs:829:23
    |
829 |         "F15" => Some(F15),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F15;
    |

error[E0425]: cannot find value `F16` in this scope
   --> src/platform_impl/emscripten/mod.rs:830:23
    |
830 |         "F16" => Some(F16),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F16;
    |

error[E0425]: cannot find value `F17` in this scope
   --> src/platform_impl/emscripten/mod.rs:831:23
    |
831 |         "F17" => Some(F17),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F17;
    |

error[E0425]: cannot find value `F18` in this scope
   --> src/platform_impl/emscripten/mod.rs:832:23
    |
832 |         "F18" => Some(F18),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F18;
    |

error[E0425]: cannot find value `F19` in this scope
   --> src/platform_impl/emscripten/mod.rs:833:23
    |
833 |         "F19" => Some(F19),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F19;
    |

error[E0425]: cannot find value `F20` in this scope
   --> src/platform_impl/emscripten/mod.rs:834:23
    |
834 |         "F20" => Some(F20),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F20;
    |

error[E0425]: cannot find value `F21` in this scope
   --> src/platform_impl/emscripten/mod.rs:835:23
    |
835 |         "F21" => Some(F21),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F21;
    |

error[E0425]: cannot find value `F22` in this scope
   --> src/platform_impl/emscripten/mod.rs:836:23
    |
836 |         "F22" => Some(F22),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F22;
    |

error[E0425]: cannot find value `F23` in this scope
   --> src/platform_impl/emscripten/mod.rs:837:23
    |
837 |         "F23" => Some(F23),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F23;
    |

error[E0425]: cannot find value `F24` in this scope
   --> src/platform_impl/emscripten/mod.rs:838:23
    |
838 |         "F24" => Some(F24),
    |                       ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::F24;
    |

error[E0425]: cannot find value `PlayPause` in this scope
   --> src/platform_impl/emscripten/mod.rs:862:34
    |
862 |         "MediaPlayPause" => Some(PlayPause),
    |                                  ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::PlayPause;
    |

error[E0425]: cannot find value `MediaStop` in this scope
   --> src/platform_impl/emscripten/mod.rs:865:29
    |
865 |         "MediaStop" => Some(MediaStop),
    |                             ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::MediaStop;
    |

error[E0425]: cannot find value `NextTrack` in this scope
   --> src/platform_impl/emscripten/mod.rs:866:34
    |
866 |         "MediaTrackNext" => Some(NextTrack),
    |                                  ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::NextTrack;
    |

error[E0425]: cannot find value `PrevTrack` in this scope
   --> src/platform_impl/emscripten/mod.rs:867:38
    |
867 |         "MediaTrackPrevious" => Some(PrevTrack),
    |                                      ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::PrevTrack;
    |

error[E0425]: cannot find value `VolumeDown` in this scope
   --> src/platform_impl/emscripten/mod.rs:881:35
    |
881 |         "AudioVolumeDown" => Some(VolumeDown),
    |                                   ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::VolumeDown;
    |

error[E0425]: cannot find value `Mute` in this scope
   --> src/platform_impl/emscripten/mod.rs:882:35
    |
882 |         "AudioVolumeMute" => Some(Mute),
    |                                   ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::Mute;
    |

error[E0425]: cannot find value `VolumeUp` in this scope
   --> src/platform_impl/emscripten/mod.rs:883:33
    |
883 |         "AudioVolumeUp" => Some(VolumeUp),
    |                                 ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
    |
5   | use event::VirtualKeyCode::VolumeUp;
    |

error[E0425]: cannot find value `Calculator` in this scope
    --> src/platform_impl/emscripten/mod.rs:1007:36
     |
1007 |         "LaunchCalculator" => Some(Calculator),
     |                                    ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Calculator;
     |

error[E0425]: cannot find value `Mail` in this scope
    --> src/platform_impl/emscripten/mod.rs:1010:30
     |
1010 |         "LaunchMail" => Some(Mail),
     |                              ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Mail;
     |

error[E0425]: cannot find value `MyComputer` in this scope
    --> src/platform_impl/emscripten/mod.rs:1013:36
     |
1013 |         "LaunchMyComputer" => Some(MyComputer),
     |                                    ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::MyComputer;
     |

error[E0425]: cannot find value `WebBack` in this scope
    --> src/platform_impl/emscripten/mod.rs:1036:31
     |
1036 |         "BrowserBack" => Some(WebBack),
     |                               ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebBack;
     |

error[E0425]: cannot find value `WebFavorites` in this scope
    --> src/platform_impl/emscripten/mod.rs:1037:36
     |
1037 |         "BrowserFavorites" => Some(WebFavorites),
     |                                    ^^^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebFavorites;
     |

error[E0425]: cannot find value `WebForward` in this scope
    --> src/platform_impl/emscripten/mod.rs:1038:34
     |
1038 |         "BrowserForward" => Some(WebForward),
     |                                  ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebForward;
     |

error[E0425]: cannot find value `WebHome` in this scope
    --> src/platform_impl/emscripten/mod.rs:1039:31
     |
1039 |         "BrowserHome" => Some(WebHome),
     |                               ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebHome;
     |

error[E0425]: cannot find value `WebRefresh` in this scope
    --> src/platform_impl/emscripten/mod.rs:1040:34
     |
1040 |         "BrowserRefresh" => Some(WebRefresh),
     |                                  ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebRefresh;
     |

error[E0425]: cannot find value `WebSearch` in this scope
    --> src/platform_impl/emscripten/mod.rs:1041:33
     |
1041 |         "BrowserSearch" => Some(WebSearch),
     |                                 ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebSearch;
     |

error[E0425]: cannot find value `WebStop` in this scope
    --> src/platform_impl/emscripten/mod.rs:1042:31
     |
1042 |         "BrowserStop" => Some(WebStop),
     |                               ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::WebStop;
     |

error[E0425]: cannot find value `Decimal` in this scope
    --> src/platform_impl/emscripten/mod.rs:1044:27
     |
1044 |         "Decimal" => Some(Decimal),
     |                           ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Decimal;
     |

error[E0425]: cannot find value `Multiply` in this scope
    --> src/platform_impl/emscripten/mod.rs:1047:34
     |
1047 |         "Multiply" | "*" => Some(Multiply),
     |                                  ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Multiply;
     |

error[E0425]: cannot find value `Add` in this scope
    --> src/platform_impl/emscripten/mod.rs:1048:29
     |
1048 |         "Add" | "+" => Some(Add),
     |                             ^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Add;
     |

error[E0425]: cannot find value `Divide` in this scope
    --> src/platform_impl/emscripten/mod.rs:1050:26
     |
1050 |         "Divide" => Some(Divide),
     |                          ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Divide;
     |

error[E0425]: cannot find value `Subtract` in this scope
    --> src/platform_impl/emscripten/mod.rs:1051:34
     |
1051 |         "Subtract" | "-" => Some(Subtract),
     |                                  ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Subtract;
     |

error[E0425]: cannot find value `Numpad0` in this scope
    --> src/platform_impl/emscripten/mod.rs:1054:50
     |
1054 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad0),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad0;
     |

error[E0425]: cannot find value `Key0` in this scope
    --> src/platform_impl/emscripten/mod.rs:1055:23
     |
1055 |             _ => Some(Key0),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key0;
     |

error[E0425]: cannot find value `Numpad1` in this scope
    --> src/platform_impl/emscripten/mod.rs:1058:50
     |
1058 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad1),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad1;
     |

error[E0425]: cannot find value `Key1` in this scope
    --> src/platform_impl/emscripten/mod.rs:1059:23
     |
1059 |             _ => Some(Key1),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key1;
     |

error[E0425]: cannot find value `Numpad2` in this scope
    --> src/platform_impl/emscripten/mod.rs:1062:50
     |
1062 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad2),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad2;
     |

error[E0425]: cannot find value `Key2` in this scope
    --> src/platform_impl/emscripten/mod.rs:1063:23
     |
1063 |             _ => Some(Key2),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key2;
     |

error[E0425]: cannot find value `Numpad3` in this scope
    --> src/platform_impl/emscripten/mod.rs:1066:50
     |
1066 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad3),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad3;
     |

error[E0425]: cannot find value `Key3` in this scope
    --> src/platform_impl/emscripten/mod.rs:1067:23
     |
1067 |             _ => Some(Key3),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key3;
     |

error[E0425]: cannot find value `Numpad4` in this scope
    --> src/platform_impl/emscripten/mod.rs:1070:50
     |
1070 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad4),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad4;
     |

error[E0425]: cannot find value `Key4` in this scope
    --> src/platform_impl/emscripten/mod.rs:1071:23
     |
1071 |             _ => Some(Key4),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key4;
     |

error[E0425]: cannot find value `Numpad5` in this scope
    --> src/platform_impl/emscripten/mod.rs:1074:50
     |
1074 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad5),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad5;
     |

error[E0425]: cannot find value `Key5` in this scope
    --> src/platform_impl/emscripten/mod.rs:1075:23
     |
1075 |             _ => Some(Key5),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key5;
     |

error[E0425]: cannot find value `Numpad6` in this scope
    --> src/platform_impl/emscripten/mod.rs:1078:50
     |
1078 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad6),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad6;
     |

error[E0425]: cannot find value `Key6` in this scope
    --> src/platform_impl/emscripten/mod.rs:1079:23
     |
1079 |             _ => Some(Key6),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key6;
     |

error[E0425]: cannot find value `Numpad7` in this scope
    --> src/platform_impl/emscripten/mod.rs:1082:50
     |
1082 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad7),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad7;
     |

error[E0425]: cannot find value `Key7` in this scope
    --> src/platform_impl/emscripten/mod.rs:1083:23
     |
1083 |             _ => Some(Key7),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key7;
     |

error[E0425]: cannot find value `Numpad8` in this scope
    --> src/platform_impl/emscripten/mod.rs:1086:50
     |
1086 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad8),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad8;
     |

error[E0425]: cannot find value `Key8` in this scope
    --> src/platform_impl/emscripten/mod.rs:1087:23
     |
1087 |             _ => Some(Key8),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key8;
     |

error[E0425]: cannot find value `Numpad9` in this scope
    --> src/platform_impl/emscripten/mod.rs:1090:50
     |
1090 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(Numpad9),
     |                                                  ^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Numpad9;
     |

error[E0425]: cannot find value `Key9` in this scope
    --> src/platform_impl/emscripten/mod.rs:1091:23
     |
1091 |             _ => Some(Key9),
     |                       ^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Key9;
     |

error[E0425]: cannot find value `A` in this scope
    --> src/platform_impl/emscripten/mod.rs:1094:27
     |
1094 |         "A" | "a" => Some(A),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::A;
     |

error[E0425]: cannot find value `B` in this scope
    --> src/platform_impl/emscripten/mod.rs:1095:27
     |
1095 |         "B" | "b" => Some(B),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::B;
     |

error[E0425]: cannot find value `C` in this scope
    --> src/platform_impl/emscripten/mod.rs:1096:27
     |
1096 |         "C" | "c" => Some(C),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::C;
     |

error[E0425]: cannot find value `D` in this scope
    --> src/platform_impl/emscripten/mod.rs:1097:27
     |
1097 |         "D" | "d" => Some(D),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::D;
     |

error[E0425]: cannot find value `E` in this scope
    --> src/platform_impl/emscripten/mod.rs:1098:27
     |
1098 |         "E" | "e" => Some(E),
     |                           ^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
     |
5    | use event::VirtualKeyCode::E;
     |
5    | use std::f32::consts::E;
     |
5    | use std::f64::consts::E;
     |

error[E0425]: cannot find value `F` in this scope
    --> src/platform_impl/emscripten/mod.rs:1099:27
     |
1099 |         "F" | "f" => Some(F),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::F;
     |

error[E0425]: cannot find value `G` in this scope
    --> src/platform_impl/emscripten/mod.rs:1100:27
     |
1100 |         "G" | "g" => Some(G),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::G;
     |

error[E0425]: cannot find value `H` in this scope
    --> src/platform_impl/emscripten/mod.rs:1101:27
     |
1101 |         "H" | "h" => Some(H),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::H;
     |

error[E0425]: cannot find value `I` in this scope
    --> src/platform_impl/emscripten/mod.rs:1102:27
     |
1102 |         "I" | "i" => Some(I),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::I;
     |

error[E0425]: cannot find value `J` in this scope
    --> src/platform_impl/emscripten/mod.rs:1103:27
     |
1103 |         "J" | "j" => Some(J),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::J;
     |

error[E0425]: cannot find value `K` in this scope
    --> src/platform_impl/emscripten/mod.rs:1104:27
     |
1104 |         "K" | "k" => Some(K),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::K;
     |

error[E0425]: cannot find value `L` in this scope
    --> src/platform_impl/emscripten/mod.rs:1105:27
     |
1105 |         "L" | "l" => Some(L),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::L;
     |

error[E0425]: cannot find value `M` in this scope
    --> src/platform_impl/emscripten/mod.rs:1106:27
     |
1106 |         "M" | "m" => Some(M),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::M;
     |

error[E0425]: cannot find value `N` in this scope
    --> src/platform_impl/emscripten/mod.rs:1107:27
     |
1107 |         "N" | "n" => Some(N),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::N;
     |

error[E0425]: cannot find value `O` in this scope
    --> src/platform_impl/emscripten/mod.rs:1108:27
     |
1108 |         "O" | "o" => Some(O),
     |                           ^
help: a tuple variant with a similar name exists
     |
1108 |         "O" | "o" => Some(Ok),
     |                           ^^
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::O;
     |

error[E0425]: cannot find value `P` in this scope
    --> src/platform_impl/emscripten/mod.rs:1109:27
     |
1109 |         "P" | "p" => Some(P),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::P;
     |

error[E0425]: cannot find value `Q` in this scope
    --> src/platform_impl/emscripten/mod.rs:1110:27
     |
1110 |         "Q" | "q" => Some(Q),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Q;
     |

error[E0425]: cannot find value `R` in this scope
    --> src/platform_impl/emscripten/mod.rs:1111:27
     |
1111 |         "R" | "r" => Some(R),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::R;
     |

error[E0425]: cannot find value `S` in this scope
    --> src/platform_impl/emscripten/mod.rs:1112:27
     |
1112 |         "S" | "s" => Some(S),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::S;
     |

error[E0425]: cannot find value `T` in this scope
    --> src/platform_impl/emscripten/mod.rs:1113:27
     |
1113 |         "T" | "t" => Some(T),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::T;
     |

error[E0425]: cannot find value `U` in this scope
    --> src/platform_impl/emscripten/mod.rs:1114:27
     |
1114 |         "U" | "u" => Some(U),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::U;
     |

error[E0425]: cannot find value `V` in this scope
    --> src/platform_impl/emscripten/mod.rs:1115:27
     |
1115 |         "V" | "v" => Some(V),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::V;
     |

error[E0425]: cannot find value `W` in this scope
    --> src/platform_impl/emscripten/mod.rs:1116:27
     |
1116 |         "W" | "w" => Some(W),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::W;
     |

error[E0425]: cannot find value `X` in this scope
    --> src/platform_impl/emscripten/mod.rs:1117:27
     |
1117 |         "X" | "x" => Some(X),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::X;
     |

error[E0425]: cannot find value `Y` in this scope
    --> src/platform_impl/emscripten/mod.rs:1118:27
     |
1118 |         "Y" | "y" => Some(Y),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Y;
     |

error[E0425]: cannot find value `Z` in this scope
    --> src/platform_impl/emscripten/mod.rs:1119:27
     |
1119 |         "Z" | "z" => Some(Z),
     |                           ^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Z;
     |

error[E0425]: cannot find value `Apostrophe` in this scope
    --> src/platform_impl/emscripten/mod.rs:1121:21
     |
1121 |         "'" => Some(Apostrophe),
     |                     ^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Apostrophe;
     |

error[E0425]: cannot find value `Backslash` in this scope
    --> src/platform_impl/emscripten/mod.rs:1122:22
     |
1122 |         "\\" => Some(Backslash),
     |                      ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Backslash;
     |

error[E0425]: cannot find value `Colon` in this scope
    --> src/platform_impl/emscripten/mod.rs:1123:21
     |
1123 |         ":" => Some(Colon),
     |                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Colon;
     |

error[E0425]: cannot find value `NumpadComma` in this scope
    --> src/platform_impl/emscripten/mod.rs:1125:50
     |
1125 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(NumpadComma),
     |                                                  ^^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::NumpadComma;
     |

error[E0425]: cannot find value `Comma` in this scope
    --> src/platform_impl/emscripten/mod.rs:1126:23
     |
1126 |             _ => Some(Comma),
     |                       ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Comma;
     |

error[E0425]: cannot find value `NumpadEquals` in this scope
    --> src/platform_impl/emscripten/mod.rs:1129:50
     |
1129 |             ffi::DOM_KEY_LOCATION_NUMPAD => Some(NumpadEquals),
     |                                                  ^^^^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::NumpadEquals;
     |

error[E0425]: cannot find value `Equals` in this scope
    --> src/platform_impl/emscripten/mod.rs:1130:23
     |
1130 |             _ => Some(Equals),
     |                       ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Equals;
     |

error[E0425]: cannot find value `LBracket` in this scope
    --> src/platform_impl/emscripten/mod.rs:1132:21
     |
1132 |         "{" => Some(LBracket),
     |                     ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::LBracket;
     |

error[E0425]: cannot find value `Period` in this scope
    --> src/platform_impl/emscripten/mod.rs:1133:21
     |
1133 |         "." => Some(Period),
     |                     ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Period;
     |

error[E0425]: cannot find value `RBracket` in this scope
    --> src/platform_impl/emscripten/mod.rs:1134:21
     |
1134 |         "}" => Some(RBracket),
     |                     ^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::RBracket;
     |

error[E0425]: cannot find value `Semicolon` in this scope
    --> src/platform_impl/emscripten/mod.rs:1135:21
     |
1135 |         ";" => Some(Semicolon),
     |                     ^^^^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Semicolon;
     |

error[E0425]: cannot find value `Slash` in this scope
    --> src/platform_impl/emscripten/mod.rs:1136:21
     |
1136 |         "/" => Some(Slash),
     |                     ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
     |
5    | use event::VirtualKeyCode::Slash;
     |

error[E0603]: struct `MonitorHandle` is private
  --> src/platform_impl/emscripten/mod.rs:13:13
   |
13 | use window::MonitorHandle as RootMonitorHandle;
   |             ^^^^^^^^^^^^^

warning: unused `#[macro_use]` import
  --> src/lib.rs:82:1
   |
82 | #[macro_use]
   | ^^^^^^^^^^^^
   |
   = note: #[warn(unused_imports)] on by default

warning: unused import: `VirtualKeyCode::*`
   --> src/platform_impl/emscripten/mod.rs:697:9
    |
697 |     use VirtualKeyCode::*;
    |         ^^^^^^^^^^^^^^^^^

error[E0107]: wrong number of type arguments: expected 0, found 1
  --> src/event_loop.rs:34:53
   |
34 |     pub(crate) event_loop: platform_impl::EventLoop<T>,
   |                                                     ^ unexpected type argument

error[E0107]: wrong number of type arguments: expected 0, found 1
   --> src/event_loop.rs:167:53
    |
167 |     event_loop_proxy: platform_impl::EventLoopProxy<T>,
    |                                                     ^ unexpected type argument

error: aborting due to 204 previous errors

Some errors occurred: E0107, E0412, E0422, E0425, E0432, E0433, E0603.

@iceiix
Copy link
Copy Markdown
Owner Author

iceiix commented May 19, 2019

iceiix added a commit to iceiix/glutin that referenced this pull request May 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant