kizuna: impl max's USIO analog fix
This commit is contained in:
parent
43a6dfbcb4
commit
42cff8b374
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user