From 6c9033bcd5c10a7e1b6456bd9b05e1f5861b0e45 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Thu, 12 Jan 2023 17:46:56 -0600 Subject: [PATCH] set controller debounces --- creeper_adventure/creeper.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/creeper_adventure/creeper.py b/creeper_adventure/creeper.py index d85cc3e..2e12603 100755 --- a/creeper_adventure/creeper.py +++ b/creeper_adventure/creeper.py @@ -420,11 +420,19 @@ class Creeper(Game): self.mouse_box = MouseSprite(self, self.background, hotbar=self.hotbar) self.joysticks = {} + self.hotbar_back_debounce = 1 self.hotbar_forward_debounce = 1 self.inventory_open_debounce = 1 self.debug_open_debounce = 1 self.main_open_debounce = 1 + + self.controller_hotbar_back_debounce = 1 + self.controller_hotbar_forward_debounce = 1 + self.controller_inventory_open_debounce = 1 + self.controller_debug_open_debounce = 1 + self.controller_main_open_debounce = 1 + self.inventory_menu = Menu(self, title="inventory") self.debug_menu = DebugMenu(self) self.debug_menu.is_open = debug