mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/gamepaddb: bug fix: crash at addAndroidDefaultMappings
Closes #2076
This commit is contained in:
parent
945f4af2ae
commit
dc811f9329
@ -594,6 +594,8 @@ func addAndroidDefaultMappings(id string) bool {
|
||||
}
|
||||
|
||||
gamepadButtonMappings[id] = map[StandardButton]*mapping{}
|
||||
gamepadAxisMappings[id] = map[StandardAxis]*mapping{}
|
||||
|
||||
if buttonMask&(1<<SDLControllerButtonA) != 0 {
|
||||
gamepadButtonMappings[id][StandardButtonRightBottom] = &mapping{
|
||||
Type: mappingTypeButton,
|
||||
|
Loading…
Reference in New Issue
Block a user