mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-19 01:24:26 +00:00
Set controller types explicitly (#295)
This commit is contained in:
parent
a779353569
commit
ccf082e46b
1 changed files with 6 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue