From e1ba5ff36cefd602e64210dcfd0c4076c871e38c Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Mon, 26 Feb 2018 19:22:18 +0200 Subject: Early commit: both desktop and wasm support --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index eedf9f4..8d987a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,8 @@ extern crate gate; -extern crate ogg_sys; - use gate::{App, Audio}; use gate::app_info::AppInfo; -use gate::input::{KeyEvent, KeyCode}; +use gate::input::{InputEvent, KeyCode}; use gate::renderer::{Renderer, Affine}; mod asset_id { include!(concat!(env!("OUT_DIR"), "/asset_id.rs")); } @@ -25,7 +23,7 @@ impl App for BugBasherGame { true } - fn input(&mut self, evt: KeyEvent, key: KeyCode, _audio: &mut Audio) -> bool { + fn input(&mut self, evt: InputEvent, _audio: &mut Audio) -> bool { true } -- cgit v1.2.3