forked from Dniel97/segatools
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;
|
||||
|
@ -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;
|
||||
|
@ -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