aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
Diffstat (limited to 'examples3d')
-rw-r--r--examples3d/vehicle_joints3.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples3d/vehicle_joints3.rs b/examples3d/vehicle_joints3.rs
index ddd672c..5eba608 100644
--- a/examples3d/vehicle_joints3.rs
+++ b/examples3d/vehicle_joints3.rs
@@ -138,16 +138,16 @@ pub fn init_world(testbed: &mut Testbed) {
for key in gfx.keys().get_pressed() {
match *key {
- KeyCode::Right => {
+ KeyCode::ArrowRight => {
steering = -1.0;
}
- KeyCode::Left => {
+ KeyCode::ArrowLeft => {
steering = 1.0;
}
- KeyCode::Up => {
+ KeyCode::ArrowUp => {
thrust = -drive_strength;
}
- KeyCode::Down => {
+ KeyCode::ArrowDown => {
thrust = drive_strength;
}
KeyCode::ShiftRight => {