From 873b384bc6a1c6359b5f890e90e37ce3374ec90b Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 17 Oct 2022 22:21:09 +0200 Subject: Fixed bug when a round ends while falling, and reset gamepad state between rounds --- src/game.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game.zig') diff --git a/src/game.zig b/src/game.zig index ce98eef..a8be210 100644 --- a/src/game.zig +++ b/src/game.zig @@ -40,6 +40,8 @@ pub const Game = struct { } self.brothers[0].resetRound(); self.brothers[1].resetRound(); + self.gamepads[0].reset(); + self.gamepads[1].reset(); } pub fn update(self: *Game) bool { self.gamepads[0].update(w4.GAMEPAD1.*); -- cgit v1.2.3