Skip to content

Commit 7c8cf64

Browse files
committed
Fix joy down/left/right last update
1 parent b09124e commit 7c8cf64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pygame_menu/menu.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2655,19 +2655,19 @@ def update(self, events: EventVectorType) -> bool:
26552655

26562656
elif self._ctrl.joy_down(event, self):
26572657
if self._current._up(apply_sound=True):
2658-
self._current._last_update_mode = [_events.MENU_LAST_MOVE_UP]
2658+
self._current._last_update_mode.append(_events.MENU_LAST_MOVE_UP)
26592659
updated = True
26602660
break
26612661

26622662
elif self._ctrl.joy_left(event, self):
26632663
if self._current._left(apply_sound=True):
2664-
self._current._last_update_mode = [_events.MENU_LAST_MOVE_LEFT]
2664+
self._current._last_update_mode.append(_events.MENU_LAST_MOVE_LEFT)
26652665
updated = True
26662666
break
26672667

26682668
elif self._ctrl.joy_right(event, self):
26692669
if self._current._right(apply_sound=True):
2670-
self._current._last_update_mode = [_events.MENU_LAST_MOVE_RIGHT]
2670+
self._current._last_update_mode.append(_events.MENU_LAST_MOVE_RIGHT)
26712671
updated = True
26722672
break
26732673

pygame_menu/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ def __str__(self) -> str:
3333
patch = property(lambda self: self[2])
3434

3535

36-
vernum = Version(4, 5, 3)
36+
vernum = Version(4, 5, 4)
3737
ver = str(vernum)
3838
rev = ''

0 commit comments

Comments
 (0)