swdc: fixed dinput buttons

This commit is contained in:
Dniel97 2024-01-17 15:52:41 +01:00
parent cc0b6b0953
commit cadf20040c
Signed by untrusted user: Dniel97
GPG Key ID: 6180B3C768FB2E08
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ static HRESULT swdc_io4_poll(void *ctx, struct io4_state *state) {
/* /*
Update steering wheel buttons Update steering wheel buttons
Those are connected to the SEGA838-15415 INDICATOR BD MAIN Those are connected to the SEGA 838-15415 INDICATOR BD MAIN
USB board which is not emulated for now. So those buttons USB board which is not emulated for now. So those buttons
are hooked to the built-in XInput support. are hooked to the built-in XInput support.
*/ */

View File

@ -408,7 +408,7 @@ static BOOL CALLBACK swdc_di_enum_callback_pedals(
static void swdc_di_get_buttons(uint16_t *gamebtn_out) static void swdc_di_get_buttons(uint16_t *gamebtn_out)
{ {
union swdc_di_state state; union swdc_di_state state;
uint8_t gamebtn; uint16_t gamebtn;
HRESULT hr; HRESULT hr;
assert(gamebtn_out != NULL); assert(gamebtn_out != NULL);