From 28ef2d719a894f7622d5d834c281cf427a37ed6b Mon Sep 17 00:00:00 2001 From: Dniel97 Date: Wed, 19 Jul 2023 12:31:57 +0200 Subject: [PATCH] dinput: fixed POV bug --- cmhook/dllmain.c | 4 ++-- idachook/dllmain.c | 2 +- idacio/di.c | 2 +- idzhook/dllmain.c | 2 +- idzio/di.c | 2 +- swdcio/di.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmhook/dllmain.c b/cmhook/dllmain.c index ce11763..5d78ace 100644 --- a/cmhook/dllmain.c +++ b/cmhook/dllmain.c @@ -60,7 +60,7 @@ static DWORD CALLBACK cm_pre_startup(void) goto fail; } - hr = vfd_hook_init(3); + hr = vfd_hook_init(2); if (FAILED(hr)) { goto fail; @@ -89,7 +89,7 @@ static DWORD CALLBACK cm_pre_startup(void) spike_hook_init(L".\\segatools.ini"); - dprintf("--- End cm_pre_startup ---\n"); + dprintf("--- End cm_pre_startup ---\n"); /* Jump to EXE start address */ diff --git a/idachook/dllmain.c b/idachook/dllmain.c index 5d6f695..fd3d447 100644 --- a/idachook/dllmain.c +++ b/idachook/dllmain.c @@ -75,7 +75,7 @@ static DWORD CALLBACK idac_pre_startup(void) spike_hook_init(L".\\segatools.ini"); - dprintf("--- End idac_pre_startup ---\n"); + dprintf("--- End idac_pre_startup ---\n"); /* Jump to EXE start address */ diff --git a/idacio/di.c b/idacio/di.c index 110a2ed..0d741cd 100644 --- a/idacio/di.c +++ b/idacio/di.c @@ -409,7 +409,7 @@ static uint8_t idac_di_decode_pov(DWORD pov) case 9000: return IDAC_IO_GAMEBTN_RIGHT; case 13500: return IDAC_IO_GAMEBTN_RIGHT | IDAC_IO_GAMEBTN_DOWN; case 18000: return IDAC_IO_GAMEBTN_DOWN; - case 22500: return IDAC_IO_GAMEBTN_DOWN | IDAC_IO_GAMEBTN_RIGHT; + case 22500: return IDAC_IO_GAMEBTN_DOWN | IDAC_IO_GAMEBTN_LEFT; case 27000: return IDAC_IO_GAMEBTN_LEFT; case 31500: return IDAC_IO_GAMEBTN_LEFT | IDAC_IO_GAMEBTN_UP; default: return 0; diff --git a/idzhook/dllmain.c b/idzhook/dllmain.c index fe78b6f..88fffbf 100644 --- a/idzhook/dllmain.c +++ b/idzhook/dllmain.c @@ -107,7 +107,7 @@ static DWORD CALLBACK idz_pre_startup(void) spike_hook_init(L".\\segatools.ini"); - dprintf("--- End idz_pre_startup ---\n"); + dprintf("--- End idz_pre_startup ---\n"); /* Jump to EXE start address */ diff --git a/idzio/di.c b/idzio/di.c index 3ee27ff..c363650 100644 --- a/idzio/di.c +++ b/idzio/di.c @@ -409,7 +409,7 @@ static uint8_t idz_di_decode_pov(DWORD pov) case 9000: return IDZ_IO_GAMEBTN_RIGHT; case 13500: return IDZ_IO_GAMEBTN_RIGHT | IDZ_IO_GAMEBTN_DOWN; case 18000: return IDZ_IO_GAMEBTN_DOWN; - case 22500: return IDZ_IO_GAMEBTN_DOWN | IDZ_IO_GAMEBTN_RIGHT; + case 22500: return IDZ_IO_GAMEBTN_DOWN | IDZ_IO_GAMEBTN_LEFT; case 27000: return IDZ_IO_GAMEBTN_LEFT; case 31500: return IDZ_IO_GAMEBTN_LEFT | IDZ_IO_GAMEBTN_UP; default: return 0; diff --git a/swdcio/di.c b/swdcio/di.c index f75aa6b..dd3d737 100644 --- a/swdcio/di.c +++ b/swdcio/di.c @@ -379,7 +379,7 @@ static uint8_t swdc_di_decode_pov(DWORD pov) case 9000: return SWDC_IO_GAMEBTN_RIGHT; case 13500: return SWDC_IO_GAMEBTN_RIGHT | SWDC_IO_GAMEBTN_DOWN; case 18000: return SWDC_IO_GAMEBTN_DOWN; - case 22500: return SWDC_IO_GAMEBTN_DOWN | SWDC_IO_GAMEBTN_RIGHT; + case 22500: return SWDC_IO_GAMEBTN_DOWN | SWDC_IO_GAMEBTN_LEFT; case 27000: return SWDC_IO_GAMEBTN_LEFT; case 31500: return SWDC_IO_GAMEBTN_LEFT | SWDC_IO_GAMEBTN_UP; default: return 0;