input: support spinner from mouse.

This commit is contained in:
sorgelig
2020-11-14 15:47:52 +08:00
parent 3f90f49a87
commit 70eb94355c
5 changed files with 100 additions and 33 deletions

View File

@@ -76,6 +76,9 @@ static const ini_var_t ini_vars[] =
{ "NO_MERGE_PID", (void*)(&(cfg.no_merge_pid)), UINT16, 0, 0xFFFF },
{ "CUSTOM_ASPECT_RATIO_1", (void*)(&(cfg.custom_aspect_ratio[0])), STRING, 0, sizeof(cfg.custom_aspect_ratio[0]) - 1 },
{ "CUSTOM_ASPECT_RATIO_2", (void*)(&(cfg.custom_aspect_ratio[1])), STRING, 0, sizeof(cfg.custom_aspect_ratio[1]) - 1 },
{ "SPINNER_VID", (void*)(&(cfg.spinner_vid)), UINT16, 0, 0xFFFF },
{ "SPINNER_PID", (void*)(&(cfg.spinner_pid)), UINT16, 0, 0xFFFF },
{ "SPINNER_THROTTLE", (void*)(&(cfg.spinner_throttle)), INT32, -100, 100 },
};
static const int nvars = (int)(sizeof(ini_vars) / sizeof(ini_var_t));