diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-02-26 19:22:18 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-02-26 19:22:18 +0200 |
commit | e1ba5ff36cefd602e64210dcfd0c4076c871e38c (patch) | |
tree | 47ea7bb37165f51bdb40ce099a0704308b2a99ba /src/main.rs | |
parent | 4dbfbc6d68516db3e90114b78c291c8a1c0eb732 (diff) |
Early commit: both desktop and wasm support
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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<AssetId> for BugBasherGame { true } - fn input(&mut self, evt: KeyEvent, key: KeyCode, _audio: &mut Audio<AssetId>) -> bool { + fn input(&mut self, evt: InputEvent, _audio: &mut Audio<AssetId>) -> bool { true } |