mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-17 11:11:10 +02:00
fix(input): Nintendo A/B face map on NX
SDL labels south as a and east as b; on Switch remap so physical A confirms and physical B cancels in launcher and NamingScreen. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1513,7 +1513,9 @@ end
|
||||
|
||||
function RomImporter:gamepadpressed(_, button)
|
||||
self:_activatePadCursor()
|
||||
if button == "a" then
|
||||
-- Map through GamepadMap so NX swaps SDL face labels to Nintendo A/B.
|
||||
local action = GamepadMap.mapGamepadButton(button)
|
||||
if action == "a" then
|
||||
-- Instant click at the virtual pointer (same path as a mouse/touch tap).
|
||||
self:mousepressed(self._padCursor.x, self._padCursor.y, 1)
|
||||
elseif button == "leftshoulder" then
|
||||
|
||||
Reference in New Issue
Block a user