1
0
mirror of synced 2024-11-27 23:10:49 +01:00

kizuna: impl max's USIO analog fix

This commit is contained in:
Kevin Trocolli 2024-10-04 09:55:53 -04:00
parent 43a6dfbcb4
commit 42cff8b374

View File

@ -42,6 +42,8 @@ static HRESULT kizuna_usio_poll(void *ctx, struct usio_state *state)
uint8_t gamebtn_out = 0; uint8_t gamebtn_out = 0;
uint8_t x = 128; uint8_t x = 128;
uint8_t y = 128; uint8_t y = 128;
uint8_t z = 128;
uint8_t r = 128;
uint16_t coin_ct = 0; uint16_t coin_ct = 0;
uint16_t service_ct = 0; uint16_t service_ct = 0;
@ -91,6 +93,8 @@ static HRESULT kizuna_usio_poll(void *ctx, struct usio_state *state)
state->analog[0] = x << 8; state->analog[0] = x << 8;
state->analog[1] = y << 8; state->analog[1] = y << 8;
state->analog[2] = z << 8;
state->analog[3] = r << 8;
state->coins[0].current_coin_count = coin_ct; state->coins[0].current_coin_count = coin_ct;
state->service.current_coin_count = service_ct; state->service.current_coin_count = service_ct;