Start implementing web-sys backend

This commit is contained in:
Ben Merritt 2019-06-03 22:51:01 -07:00
parent 182beb4f8b
commit e4d8e22846
No known key found for this signature in database
GPG key ID: F8AD20ED4E6239B7
11 changed files with 479 additions and 15 deletions

View file

@ -1,4 +1,8 @@
extern crate winit;
#[cfg(feature = "stdweb")]
#[macro_use]
extern crate stdweb;
#[cfg(feature = "wasm-bindgen")]
#[macro_use]
extern crate stdweb;
@ -13,10 +17,10 @@ fn main() {
.with_title("A fantastic window!")
.build(&event_loop)
.unwrap();
console!(log, "Built window!");
//console!(log, "Built window!");
event_loop.run(|event, _, control_flow| {
console!(log, format!("{:?}", event));
//console!(log, format!("{:?}", event));
match event {
Event::WindowEvent {