Set controller types explicitly (#295)

This commit is contained in:
sergystepanov 2021-03-17 18:27:13 +03:00 committed by Sergey Stepanov
parent a779353569
commit ccf082e46b
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B

View file

@ -567,6 +567,12 @@ func coreLoadGame(filename string) {
runtime.UnlockOSThread()
}
}
// set default controller types on all ports
maxPort := 4 // controllersNum
for i := 0; i < maxPort; i++ {
C.bridge_retro_set_controller_port_device(retroSetControllerPortDevice, C.uint(i), C.RETRO_DEVICE_JOYPAD)
}
}
func toggleMultitap() {