mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +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{}
|
gamepadButtonMappings[id] = map[StandardButton]*mapping{}
|
||||||
|
gamepadAxisMappings[id] = map[StandardAxis]*mapping{}
|
||||||
|
|
||||||
if buttonMask&(1<<SDLControllerButtonA) != 0 {
|
if buttonMask&(1<<SDLControllerButtonA) != 0 {
|
||||||
gamepadButtonMappings[id][StandardButtonRightBottom] = &mapping{
|
gamepadButtonMappings[id][StandardButtonRightBottom] = &mapping{
|
||||||
Type: mappingTypeButton,
|
Type: mappingTypeButton,
|
||||||
|
Loading…
Reference in New Issue
Block a user