From f414e25b9d490af9e6b6675e3d65fd4c81f30cab Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 7 Sep 2022 15:54:11 +0900 Subject: [PATCH] internal/gamepaddb: fix some button assignments for Android Updates #2309 --- internal/gamepaddb/gamepaddb.go | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/internal/gamepaddb/gamepaddb.go b/internal/gamepaddb/gamepaddb.go index ad8e36e6b..6867ea713 100644 --- a/internal/gamepaddb/gamepaddb.go +++ b/internal/gamepaddb/gamepaddb.go @@ -633,41 +633,43 @@ func addAndroidDefaultMappings(id string) bool { gamepadButtonMappings[id] = map[StandardButton]*mapping{} gamepadAxisMappings[id] = map[StandardAxis]*mapping{} + // For mappings, see mobile/ebitenmobileview/input_android.go. + if buttonMask&(1<