mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-21 09:08:57 +00:00
Update cores
This commit is contained in:
parent
ad82e22cfc
commit
0539e89bda
13 changed files with 15 additions and 14 deletions
BIN
libretro/core/testdata/Polar Rescue (USA).vec
vendored
BIN
libretro/core/testdata/Polar Rescue (USA).vec
vendored
Binary file not shown.
BIN
libretro/core/testdata/Polar Rescue (USA).zip
vendored
BIN
libretro/core/testdata/Polar Rescue (USA).zip
vendored
Binary file not shown.
BIN
libretro/core/testdata/vecx_libretro.dll
vendored
BIN
libretro/core/testdata/vecx_libretro.dll
vendored
Binary file not shown.
BIN
libretro/core/testdata/vecx_libretro.dylib
vendored
BIN
libretro/core/testdata/vecx_libretro.dylib
vendored
Binary file not shown.
BIN
libretro/core/testdata/vecx_libretro.so
vendored
BIN
libretro/core/testdata/vecx_libretro.so
vendored
Binary file not shown.
|
|
@ -66,8 +66,12 @@ var NAEmulator *naEmulator
|
|||
|
||||
// TODO: Load from config
|
||||
var emulatorCorePath = map[string]string{
|
||||
"gba": "libretro/cores/mgba_libretro.so",
|
||||
"pcsx": "libretro/cores/pcsx_rearmed_libretro.so",
|
||||
"gba": "libretro/cores/mgba_libretro.so",
|
||||
//"pcsx": "libretro/cores/mednafen_psx_libretro.so",
|
||||
//"pcsx": "libretro/cores/mednafen_psx_hw_libretro.so",
|
||||
"pcsx": "libretro/cores/pcsx_rearmed_libretro.so",
|
||||
"arcade": "libretro/cores/fbalpha2012_neogeo_libretro.so",
|
||||
"mame": "libretro/cores/mame2016_libretro.so",
|
||||
}
|
||||
|
||||
// NAEmulator implements CloudEmulator interface based on NanoArch(golang RetroArch)
|
||||
|
|
@ -94,9 +98,11 @@ func (na *naEmulator) listenInput() {
|
|||
// we decode the bitmap and send to channel
|
||||
for inpBitmap := range NAEmulator.inputChannel {
|
||||
for k := 0; k < len(na.keys); k++ {
|
||||
key := bindRetroKeys[k]
|
||||
if (inpBitmap & 1) == 1 {
|
||||
key := bindRetroKeys[k]
|
||||
na.keys[key] = true
|
||||
} else {
|
||||
na.keys[key] = false
|
||||
}
|
||||
inpBitmap >>= 1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -187,10 +187,6 @@ func coreInputPoll() {
|
|||
for i := range NAEmulator.keys {
|
||||
joy[i] = NAEmulator.keys[i]
|
||||
}
|
||||
|
||||
for i := range NAEmulator.keys {
|
||||
NAEmulator.keys[i] = false
|
||||
}
|
||||
}
|
||||
|
||||
//export coreInputState
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue