analog wheel input

This commit is contained in:
2019-07-27 19:26:11 +02:00
parent d53170c5ce
commit 3ec4f59f58
4 changed files with 91 additions and 45 deletions

View File

@@ -27,7 +27,7 @@ impl Game for TestGame {
game_data.recreate_pipeline = true;
}
self.cam_pos.x += self.input.get_axis("FORWARD_AXIS");
self.cam_pos.x += self.input.get_axis("FORWARD_AXIS") * 0.01;
// Move game objects
game_data.push_constants.time = game_data.start_time.elapsed().unwrap().as_millis() as f32 / 1000.0;