Add 100% accuracy test and add controller support for the game only(not ui)

This commit is contained in:
csd4ni3l
2025-06-25 15:43:58 +02:00
parent 33877059e0
commit a7f5b94ae8
6 changed files with 112 additions and 47 deletions

View File

@@ -25,9 +25,9 @@ class Inventory():
if key.isnumeric() and int(key) <= self.slot_number:
self.switch_to(int(key) - 1)
if key == "scroll down":
if key == "scroll down" or key == "gamepad dpad right":
self.switch_to(min(self.slot_number - 1, self.current_slot + 1))
elif key == "scroll up":
elif key == "scroll up" or key == "gamepad dpad left":
self.switch_to(max(0, self.current_slot - 1))
def append(self, item, name, slot):