Start implementing web-sys backend
This commit is contained in:
parent
182beb4f8b
commit
e4d8e22846
11 changed files with 479 additions and 15 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue