nyx: add option to use right joycon as mouse control

`jcforceright=1` in nyx.ini enables that feature.
Useful for users with broken touch screen and broken left joycon rail.
This commit is contained in:
CTCaer
2022-03-23 00:49:47 +02:00
parent af1ece903b
commit c04d423f4b
5 changed files with 61 additions and 15 deletions

View File

@@ -52,6 +52,7 @@ void set_nyx_default_configuration()
n_cfg.verification = 1;
n_cfg.ums_emmc_rw = 0;
n_cfg.jc_disable = 0;
n_cfg.jc_force_right = 0;
n_cfg.bpmp_clock = 0;
}
@@ -210,6 +211,9 @@ int create_nyx_config_entry(bool force_unmount)
f_puts("\njcdisable=", &fp);
itoa(n_cfg.jc_disable, lbuf, 10);
f_puts(lbuf, &fp);
f_puts("\njcforceright=", &fp);
itoa(n_cfg.jc_force_right, lbuf, 10);
f_puts(lbuf, &fp);
f_puts("\nbpmpclock=", &fp);
itoa(n_cfg.bpmp_clock, lbuf, 10);
f_puts(lbuf, &fp);