forked from TeamTofuShop/segatools
Tweak JVS coin count APIs
This makes things more consistent with the button/analog APIs.
This commit is contained in:
@ -136,7 +136,7 @@ void idz_io_jvs_read_analogs(struct idz_io_analog_state *out)
|
||||
out->brake = xi.Gamepad.bLeftTrigger << 8;
|
||||
}
|
||||
|
||||
uint16_t idz_io_jvs_read_coin_counter(void)
|
||||
void idz_io_jvs_read_coin_counter(uint16_t *out)
|
||||
{
|
||||
if (GetAsyncKeyState('3')) {
|
||||
if (!idz_io_coin) {
|
||||
@ -147,5 +147,5 @@ uint16_t idz_io_jvs_read_coin_counter(void)
|
||||
idz_io_coin = false;
|
||||
}
|
||||
|
||||
return idz_io_coins;
|
||||
*out = idz_io_coins;
|
||||
}
|
||||
|
@ -32,6 +32,6 @@ void idz_io_jvs_read_buttons(uint8_t *opbtn, uint8_t *gamebtn);
|
||||
|
||||
void idz_io_jvs_read_shifter(uint8_t *gear);
|
||||
|
||||
uint16_t idz_io_jvs_read_coin_counter(void);
|
||||
void idz_io_jvs_read_coin_counter(uint16_t *total);
|
||||
|
||||
// TODO force feedback once that gets reverse engineered
|
||||
|
Reference in New Issue
Block a user