set controller debounces

This commit is contained in:
Waylon Walker 2023-01-12 17:46:56 -06:00
parent e39832460f
commit 6c9033bcd5
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -420,11 +420,19 @@ class Creeper(Game):
self.mouse_box = MouseSprite(self, self.background, hotbar=self.hotbar) self.mouse_box = MouseSprite(self, self.background, hotbar=self.hotbar)
self.joysticks = {} self.joysticks = {}
self.hotbar_back_debounce = 1 self.hotbar_back_debounce = 1
self.hotbar_forward_debounce = 1 self.hotbar_forward_debounce = 1
self.inventory_open_debounce = 1 self.inventory_open_debounce = 1
self.debug_open_debounce = 1 self.debug_open_debounce = 1
self.main_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.inventory_menu = Menu(self, title="inventory")
self.debug_menu = DebugMenu(self) self.debug_menu = DebugMenu(self)
self.debug_menu.is_open = debug self.debug_menu.is_open = debug