mmatyas / pegasus-frontend

A cross platform, customizable graphical frontend for launching emulators and managing your game collection.

Home Page:http://pegasus-frontend.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gamepad dpad works, but none of the buttons

c4c1n6kr3m1 opened this issue · comments

cheap chinese
guid : 03000000790000000600000000000000
log

2023-05-12T16:23:46 [i] Pegasus alpha16-49-gbb289e81 (2023-04-28)
2023-05-12T16:23:46 [i] Running on Android (11.0) (arm64, android)
2023-05-12T16:23:46 [i] Qt version 5.15.6
2023-05-12T16:23:46 [i] Program settings loaded (/storage/emulated/0/Android/data/org.pegasus_frontend.android/files/pegasus-frontend/settings.txt)
2023-05-12T16:23:46 [i] Found locale ar
2023-05-12T16:23:46 [i] Found locale bs
2023-05-12T16:23:46 [i] Found locale de
2023-05-12T16:23:46 [i] Found locale en-GB
2023-05-12T16:23:46 [i] Found locale en
2023-05-12T16:23:46 [i] Found locale es
2023-05-12T16:23:46 [i] Found locale fr
2023-05-12T16:23:46 [i] Found locale hu
2023-05-12T16:23:46 [i] Found locale ja
2023-05-12T16:23:46 [i] Found locale ko
2023-05-12T16:23:46 [i] Found locale lt
2023-05-12T16:23:46 [i] Found locale nl
2023-05-12T16:23:46 [i] Found locale pt-BR
2023-05-12T16:23:46 [i] Found locale ru
2023-05-12T16:23:46 [i] Found locale zh-TW
2023-05-12T16:23:46 [i] Found locale zh
2023-05-12T16:23:46 [i] Locale set to en
2023-05-12T16:23:46 [i] Found theme Pegasus Grid at :/themes/pegasus-theme-grid/
2023-05-12T16:23:46 [i] Found theme RP Epic Noir at /storage/emulated/0/pegasus-frontend/themes/RP-epic-noir/
2023-05-12T16:23:46 [i] Found theme RP Switch Theme at /storage/emulated/0/pegasus-frontend/themes/RP-switch/
2023-05-12T16:23:46 [i] Found theme clearOS at /storage/emulated/0/pegasus-frontend/themes/clearOS/
2023-05-12T16:23:46 [i] Found theme gameOS at /storage/emulated/0/pegasus-frontend/themes/gameOS/
2023-05-12T16:23:46 [i] Found theme shinretro at /storage/emulated/0/pegasus-frontend/themes/neoretro-dark/
2023-05-12T16:23:46 [i] Found theme Retro Mega Next at /storage/emulated/0/pegasus-frontend/themes/retromega/
2023-05-12T16:23:46 [i] Theme set to shinretro (/storage/emulated/0/pegasus-frontend/themes/neoretro-dark/)
2023-05-12T16:23:47 [i] Gamepad: Connected device 0x7 (generic)
2023-05-12T16:23:47 [i] Gamepad: Connected device 0xa (generic)
2023-05-12T16:23:47 [w] Secure connection (SSL) support not available, downloading metadata is not possible
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/3do/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/3ds/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/amiga/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/amstradcpc/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/atari2600/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/atarist/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/colecovision/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/cps1/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/cps2/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/cps3/metadata.pegasus.txt
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/cps3/metadata.pegasus.txt, line 16: line starts with whitespace, but no attribute has been defined yet
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/daphne/metadata.pegasus.txt
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/daphne/metadata.pegasus.txt, line 16: line starts with whitespace, but no attribute has been defined yet
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/doom/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/dos/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/dreamcast/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/fba/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/fbneo/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/gameandwatch/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/gamegear/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/gb/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/gba/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/gbc/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/gc/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/genesis/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/genesiswide/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/intellivision/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/lutro/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/lynx/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/mame/metadata.pegasus.txt
2023-05-12T16:23:47 [w] Metafiles: /storage/emulated/0/roms/mame/metadata.pegasus.txt, line 20: Game file /storage/emulated/0/roms/mame/aquajack.zip doesn't seem to exist
2023-05-12T16:23:47 [w] Metafiles: /storage/emulated/0/roms/mame/metadata.pegasus.txt, line 28: Game file /storage/emulated/0/roms/mame/pitfall2.zip doesn't seem to exist
2023-05-12T16:23:47 [w] Metafiles: /storage/emulated/0/roms/mame/metadata.pegasus.txt, line 36: Game file /storage/emulated/0/roms/mame/shdancer.zip doesn't seem to exist

blablabla

2023-05-12T16:23:47 [w] Metafiles: /storage/emulated/0/roms/mame/metadata.pegasus.txt, line 806: Game file /storage/emulated/0/roms/mame/shadoww.zip doesn't seem to exist
2023-05-12T16:23:47 [w] Metafiles: 2424 other issues omitted
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/mastersystem/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/msx/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/n64/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/nds/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/neogeo/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/neogeocd/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/nes/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/ngp/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/ngpc/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/pcengine/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/pico8/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/ps2/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/psp/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/psx/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/quake_1/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/saturn/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/scripts/metadata.pegasus.txt
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/scripts/metadata.pegasus.txt, line 5: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/scripts/metadata.pegasus.txt, line 6: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/scripts/metadata.pegasus.txt, line 7: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/scripts/metadata.pegasus.txt, line 8: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/scripts/metadata.pegasus.txt, line 9: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/scripts/metadata.pegasus.txt, line 10: line invalid, skipped
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/scummvm/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/sega32x/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/segacd/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/snes/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/sneshd/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/tic80/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/vectrex/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/virtualboy/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/wii/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/wonderswan/metadata.pegasus.txt
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/wonderswan/metadata.pegasus.txt, line 5: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/wonderswan/metadata.pegasus.txt, line 6: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/wonderswan/metadata.pegasus.txt, line 7: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/wonderswan/metadata.pegasus.txt, line 8: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/wonderswan/metadata.pegasus.txt, line 9: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/wonderswan/metadata.pegasus.txt, line 10: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/wonderswan/metadata.pegasus.txt, line 11: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/wonderswan/metadata.pegasus.txt, line 12: line invalid, skipped
2023-05-12T16:23:47 [e] Metafiles: /storage/emulated/0/roms/wonderswan/metadata.pegasus.txt, line 13: line invalid, skipped
2023-05-12T16:23:47 [i] Metafiles: Found /storage/emulated/0/roms/zxspectrum/metadata.pegasus.txt
2023-05-12T16:23:47 [i] Metafiles: Finished searching in 594ms
2023-05-12T16:23:47 [i] Media: Finished searching in 117ms
2023-05-12T16:23:48 [i] Android Apps: 77 apps found
2023-05-12T16:23:48 [i] Android Apps: Finished searching in 790ms
2023-05-12T16:23:48 [i] Logiqx: Finished searching in 75ms
2023-05-12T16:23:49 [i] Skraper Assets: 252 assets found
2023-05-12T16:23:49 [i] Skraper Assets: Finished searching in 264ms
2023-05-12T16:23:49 [i] Favorites: Finished searching in 0ms
2023-05-12T16:23:49 [i] Playtime: Finished searching in 12ms
2023-05-12T16:23:49 [w] The collection 'Wonderswan' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Vectrex' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Super Nintendo Widescreen' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Sega CD' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Neo Geo' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'PlayStation 2' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Neo Geo Pocket' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'PlayStation Portable' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Scripts' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Arcade (FBN)' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Lutro' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Nintendo Wii' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Saturn' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Nintendo DS' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'MSX/SVI/ColecoVision/SG-1000' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Master System' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Mame' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'ZX Spectrum (various)' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Intellivision' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Sega Genesis Widescreen' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'GameCube' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'CP System III' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Game Boy' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Atari 2600' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Arcade (FBA)' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Neo Geo Pocket Color' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'CP System II' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Arcade (Daphne)' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection '3DO' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'DooM' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'SNK Neo Geo CD' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Game & Watch' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'DOS' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'TIC-80' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Nintendo 3DS' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Amiga' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Nintendo 64' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'VirtualBoy' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'CPC/GX4000' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'ColecoVision' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'PC Engine' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Game Gear' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Dreamcast' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Sega 32X' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Lynx' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Quake Game Engine' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'Atari ST/STE/TT/Falcon' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'CP System I' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'PlayStation' has no valid games, ignored
2023-05-12T16:23:49 [w] The collection 'PICO8' has no valid games, ignored
2023-05-12T16:23:49 [i] Game list post-processing took 6ms
2023-05-12T16:23:49 [i] 193 games found
2023-05-12T16:23:49 [i] qml: triggered
2023-05-12T16:23:49 [w] file:///storage/emulated/0/pegasus-frontend/themes/neoretro-dark/Menu/Menu.qml:158:25: QML Image: Cannot open: file:///storage/emulated/0/pegasus-frontend/themes/neoretro-dark/assets/collections/genesis/logo_pal_mono
2023-05-12T16:23:53 [w] Unhandled key code 190 !
2023-05-12T16:23:53 [w] Unhandled key code 190 !
2023-05-12T16:23:57 [w] Unhandled key code 193 !
2023-05-12T16:23:57 [w] Unhandled key code 193 !
2023-05-12T16:23:58 [w] Unhandled key code 195 !
2023-05-12T16:23:58 [w] Unhandled key code 195 !
2023-05-12T16:23:58 [w] Unhandled key code 194 !
2023-05-12T16:23:58 [w] Unhandled key code 194 !
2023-05-12T16:23:58 [w] Unhandled key code 193 !
2023-05-12T16:23:58 [w] Unhandled key code 193 !
2023-05-12T16:23:59 [w] Unhandled key code 192 !
2023-05-12T16:23:59 [w] Unhandled key code 192 !
2023-05-12T16:24:35 [w] Unhandled key code 190 !
2023-05-12T16:24:35 [w] Unhandled key code 190 !
2023-05-12T16:24:35 [w] Unhandled key code 193 !
2023-05-12T16:24:35 [w] Unhandled key code 191 !
2023-05-12T16:24:35 [w] Unhandled key code 193 !
2023-05-12T16:24:35 [w] Unhandled key code 191 !
2023-05-12T16:24:36 [w] Unhandled key code 197 !
2023-05-12T16:24:36 [w] Unhandled key code 197 !
2023-05-12T16:24:53 [w] Unhandled key code 191 !
2023-05-12T16:24:53 [w] Unhandled key code 191 !
2023-05-12T16:24:54 [w] Unhandled key code 188 !
2023-05-12T16:24:54 [w] Unhandled key code 188 !
2023-05-12T16:24:55 [w] Unhandled key code 189 !
2023-05-12T16:24:55 [w] Unhandled key code 189 !
2023-05-12T16:24:56 [w] Unhandled key code 190 !
2023-05-12T16:24:56 [w] Unhandled key code 190 !
2023-05-12T16:24:57 [w] Unhandled key code 192 !
2023-05-12T16:24:57 [w] Unhandled key code 192 !
2023-05-12T16:24:57 [w] Unhandled key code 193 !
2023-05-12T16:24:57 [w] Unhandled key code 193 !
2023-05-12T16:24:58 [w] Unhandled key code 194 !
2023-05-12T16:24:58 [w] Unhandled key code 194 !
2023-05-12T16:24:59 [w] Unhandled key code 195 !
2023-05-12T16:24:59 [w] Unhandled key code 195 !
2023-05-12T16:25:00 [w] Unhandled key code 196 !
2023-05-12T16:25:00 [w] Unhandled key code 196 !
2023-05-12T16:25:01 [w] Unhandled key code 197 !
2023-05-12T16:25:01 [w] Unhandled key code 197 !
2023-05-12T16:25:25 [i] Closing Pegasus, goodbye!

=====================================
Unhandled key code ???

i'm not programmer but looks like Unhandled key codes 188-197 ( my gamepad only have 10 buttons , but according this site or android code, it could 16 button https://elementalx.org/button-mapper/android-key-codes/ )
may be similar problem and solution like this https://forum.defold.com/t/generic-gamepad-not-working-on-android/68989/10

Hi! Yes, the issue here is the same as with Defold: if the Android OS recognizes a device as a gamepad, the apps should receive its input as properly named buttons ("BUTTON_A", "BUTTON_X", and so on). In your case, the Android OS does not seem to recognize the gamepad layout, and so it sends generic numbers instead ("188", "197", etc.). This is the "Unhandled key code" message.

On Android, Pegasus uses the Qt libraries for detecting gamepad input. The Qt libraries use the layout detected by the Android OS, but if Android itself does not recognize the gamepad layout, then it won't work properly in Pegasus either.

In the future, it would be nice to replace the Qt code with something more up to date, but that will take some time.