axis made out of buttons

This commit is contained in:
2019-07-27 17:36:14 +02:00
parent 6f2b9d1b71
commit 21d642ec59
4 changed files with 33 additions and 39 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");
self.cam_pos.x += self.input.get_axis("FORWARD_AXIS");
// Move game objects
game_data.push_constants.time = game_data.start_time.elapsed().unwrap().as_millis() as f32 / 1000.0;