Keyboard and game controller support through actions, with rebinding and rumble.

Games name their actions with default keys and controller inputs and ask
Controls whether they are held, pressed or how far they are pushed. Library
menus, text display, message boxes, cut scenes, power bars and pause work
with a controller. controls_menu lets players rebind and set rumble; only
changes from the defaults are saved in config.ini.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Storm DragonandClaude Opus 5.5 committed 2026-11-29 20:17:31 -05:00
1 parent 7e50223dde
commit 4ef866717c
14 files changed
+2708 -130

No files matched your search

+2 -1
View File
@@ -16,6 +16,7 @@ import time
import pygame
from .controls import translate_event
from .i18n import _, N_, reset_language
from .menu import is_language_reset
from .services import ConfigService
@@ -212,7 +213,7 @@ def speech_options_menu(sounds, preferences=None, title=None):
say(_("{title}. {item}").format(title=title or _("Speech options"), item=current_label()))
pygame.event.clear()
while True:
event = pygame.event.wait()
event = translate_event(pygame.event.wait())
if event.type == pygame.QUIT:
return
if event.type != pygame.KEYDOWN: