mirror of
https://gitea.tendokyu.moe/Dniel97/segatools.git
synced 2024-11-11 23:17:08 +01:00
dinput: fixed POV bug
This commit is contained in:
parent
600f795104
commit
28ef2d719a
@ -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 */
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user