Add support for rumble data from hps_io. Fix data truncation in spi_uio_cmd (#568)

Co-authored-by: Zakk <zakk@rsdio.com>
This commit is contained in:
zakk4223
2022-03-13 03:21:19 -04:00
committed by GitHub
parent 698b2bd47f
commit 6e18651521
6 changed files with 120 additions and 1 deletions

View File

@@ -91,6 +91,7 @@ static const ini_var_t ini_vars[] =
{ "BT_AUTO_DISCONNECT", (void*)(&(cfg.bt_auto_disconnect)), UINT32, 0, 180 },
{ "BT_RESET_BEFORE_PAIR", (void*)(&(cfg.bt_reset_before_pair)), UINT8, 0, 1 },
{ "WAITMOUNT", (void*)(&(cfg.waitmount)), STRING, 0, sizeof(cfg.waitmount) - 1 },
{ "RUMBLE", (void *)(&(cfg.rumble)), UINT8, 0, 1},
};
static const int nvars = (int)(sizeof(ini_vars) / sizeof(ini_var_t));
@@ -349,5 +350,6 @@ void cfg_parse()
cfg.controller_info = 6;
cfg.browse_expand = 1;
cfg.logo = 1;
cfg.rumble = 1;
ini_parse(altcfg());
}