Fix bug
This commit is contained in:
@@ -31,7 +31,7 @@ impl Controls {
|
||||
}
|
||||
Controls::Gamepad(id) => {
|
||||
if let Some(gamepad) = input.gamepad(*id) {
|
||||
gamepad.main_direction()
|
||||
Vector::new(gamepad.main_direction().x, 0.0)
|
||||
} else {
|
||||
Vector::new(0.0, 0.0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user