Skip to content

Commit

Permalink
internal/gamepaddb: bug fix: crash at addAndroidDefaultMappings
Browse files Browse the repository at this point in the history
Closes #2076
  • Loading branch information
hajimehoshi committed Apr 19, 2022
1 parent b37962e commit 3b97d09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/gamepaddb/gamepaddb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3b97d09

Please sign in to comment.