Yabause / yabause

Yabause is a Sega Saturn emulator.
http://yabause.org
352 stars 194 forks source link

[Controller] PS2 gamepad... #337

Open BenjaminSiskoo opened 7 years ago

BenjaminSiskoo commented 7 years ago

PS2 dpad doesn't works. These 4 buttons : Up, Down, Right, Left.

[0.9.11] General\Geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\x3\xea\0\0\x1\x89\0\0\x6v\0\0\x3\x8f\0\0\x3\xf2\0\0\x1\xa8\0\0\x6n\0\0\x3\x87\0\0\0\0\0\0\0\0\x6\x90) Input\Port\1\Id\1\Type=2 Input\Port\1\Id\1\Controller\2\Key\0=16385 Input\Port\1\Id\1\Controller\2\Key\2=16385 Input\Port\1\Id\1\Controller\2\Key\3=16384 Input\Port\1\Id\1\Controller\2\Key\1=16384 Input\Port\1\Id\1\Controller\2\Key\6=12 Input\Port\1\Id\1\Controller\2\Key\7=4 Input\Port\1\Id\1\Controller\2\Key\8=3 Input\Port\1\Id\1\Controller\2\Key\9=2 Input\Port\1\Id\1\Controller\2\Key\10=1 Input\Port\1\Id\1\Controller\2\Key\11=5 Input\Port\1\Id\1\Controller\2\Key\12=6 Input\Port\1\Id\1\Controller\2\Key\5=7 Input\Port\1\Id\1\Controller\2\Key\4=8 General\Bios= General\EnableEmulatedBios=true General\CdRom=2 General\CdRomISO=D:/ General\SaveStates= General\Translation= General\EnableFrameSkipLimiter=false General\ShowFPS=false autostart=false Video\VideoCore=2 Video\OSDCore=2 Video\WindowWidth=640 Video\WindowHeight=480 Video\AspectRatio=0 Video\FullscreenWidth=640 Video\FullscreenHeight=480 Video\Fullscreen=false Video\Bilinear=true Video\VideoFormat=0 Video\EnableIntegerPixelScaling=false Video\IntegerPixelScalingMultiplier=2 General\ClockSync=false General\FixedBaseTime=1998-01-01T12:00:00 General\EnableMultiThreading=true General\NumThreads=4 Sound\SoundCore=1 Sound\NewScsp=true Cartridge\Type=0 Cartridge\Path= Cartridge\ModemIP=127.0.0.1 Cartridge\ModemPort=1337 Memory\Path= SH1ROM\Path= MpegROM\Path= Input\PerCore=3 Input\GunMouseSensitivity=100 Advanced\Region=Auto Advanced\SH1Interpreter=0 Advanced\EnableCDBlockLLE=false Advanced\EnableSh2DmaTiming=false Advanced\EnableScuDmaTiming=false Advanced\EnableSh2Cache=false Advanced\SH2Interpreter=0 Advanced\68kCore=3 View\Menubar=3 View\Toolbar=1 View\LogWindow=0 Shortcuts\%26Quitter=Ctrl+Q Shortcuts\Start= Shortcuts\Stop= Shortcuts\%26Param%E8tres...=Ctrl+S Shortcuts\L%26ancer=F1 Shortcuts\%26Pause=F2 Shortcuts\%26Red%E9marrer=F3 Shortcuts\%26Transfert=Ctrl+T Shortcuts\Copie%20d%27Ec%26ran=Ctrl+P Shortcuts\%26Saut%20d%27Image\Limitateur=F4 Shortcuts\F%26PS=F12 Shortcuts\VDP1=1 Shortcuts\%26Plein%20Ecran=Alt+Return Shortcuts\%26Journal=Ctrl+L Shortcuts\SH2%20%26Ma%EEtre= Shortcuts\SH2%20E%26sclave= Shortcuts\VDP%261= Shortcuts\VDP%262= Shortcuts\M%2668K= Shortcuts\SCU-%26DSP= Shortcuts\S%26CSP= Shortcuts\Memory%20Transfer= Shortcuts\%26A%20Propos%20De...= Shortcuts\NBG0=2 Shortcuts\NBG1=3 Shortcuts\NBG2=4 Shortcuts\NBG3=5 Shortcuts\RGB0=6 Shortcuts\1=Alt+1 Shortcuts\2=Alt+2 Shortcuts\3=Alt+3 Shortcuts\4=Alt+4 Shortcuts\5=Alt+5 Shortcuts\6=Alt+6 Shortcuts\7=Alt+7 Shortcuts\8=Alt+8 Shortcuts\9=Alt+9 Shortcuts\Vers%20un%20Fichier...=F9 Shortcuts\A%20Partir%20d%27un%20Fichier...=F5 Shortcuts\Liste%20de%20%26Cheats...=Alt+L Shortcuts\%26Gestion%20des%20Sauvegardes...=Alt+B Shortcuts\Ouvrir%20un%20%26ISO...=Ctrl+I Shortcuts\Ouvrir%20un%20%26CD%20Rom...=Ctrl+C Shortcuts\Liste%20de%20Compatibilit%E9= Shortcuts\Sound...= Shortcuts\Video%20Driver= Shortcuts\0=Alt+0 Shortcuts\%26Editeur%20de%20M%E9moire= Shortcuts\%26Rechercher%20un%20Cheat...=Alt+S Shortcuts\SCSP%20DSP= Shortcuts\Enregistreur%20de%20Trace= Shortcuts\Canaux%20SCSP= Shortcuts\Ouvrir%20Lecteur%20SSF= Shortcuts\SH1= Shortcuts\Documentation= Shortcuts\%26Fichier= Shortcuts\S%26auvegarder%20un%20Etat= Shortcuts\%26Charger%20un%20Etat= Shortcuts\%26Visualiser= Shortcuts\%26Couche= Shortcuts\%26D%E9bug= Shortcuts\%26Aide= Shortcuts\Ou%26tils= Shortcuts\%26Emulation= Shortcuts\Barre%20d%27Outils= Shortcuts\Journal= Sound\Volume=100 Recents\ISOs= Shortcuts\1%20...%20=Alt+1 Shortcuts\2%20...%20=Alt+2 Shortcuts\3%20...%20=Alt+3 Shortcuts\4%20...%20=Alt+4 Shortcuts\5%20...%20=Alt+5 Shortcuts\6%20...%20=Alt+6 Shortcuts\7%20...%20=Alt+7 Shortcuts\8%20...%20=Alt+8 Shortcuts\9%20...%20=Alt+9 Shortcuts\0%20...%20=Alt+0

sairuk commented 7 years ago

Experiencing the same under Linux with multiple USB adapted controllers (PS2, SNES)

Map from 0.9.15 (Release and GIT)

Input\Port\1\Id\1\Controller\2\Key\0=16385
Input\Port\1\Id\1\Controller\2\Key\2=16385
Input\Port\1\Id\1\Controller\2\Key\3=16384
Input\Port\1\Id\1\Controller\2\Key\1=16384

Map from 0.9.14

Input\Port\1\Id\1\Controller\2\Key\0=1048577
Input\Port\1\Id\1\Controller\2\Key\2=1114113
Input\Port\1\Id\1\Controller\2\Key\3=1048576
Input\Port\1\Id\1\Controller\2\Key\1=1114112

If I configure the controls under 0.9.14 then use a 0.9.15 build with the 0.9.14 configured ini I have directional control ingame.

Work around to this issue is to turn on Analog when mapping the buttons.

I presume this is because with analog off most PS2 adapters register the DPAD as an AXIS direction, now that 0.9.15 scans for PERSF_AXIS in src/qt/ui/UIPadSetting.cpp there is a change in behaviour between versions.

I'll need to look into what my SNES usb adapter outputs because toggling modes in not possible on that.

BenjaminSiskoo commented 7 years ago

Thanks for the tips :)