mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
rb: more touch options (#699)
## Link to GitHub Issue or related Pull Request, if one exists n/a ## Description of change Add two options: 1. option to adjust poll rate 2. option to change emulation size Also, the default configuration is changing from: * ~1000Hz ish to 120Hz (default) * 3x3 point to 1x1 point In theory this does not make a meaningful change to how the game plays. But if people want the old behavior they can change it. ## Testing Tested on Volzza2 and Reflesia.
This commit is contained in:
@@ -1205,9 +1205,20 @@ int main_implementation(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
// reflec beat touch emulation
|
||||
if (options[launcher::Options::spice2x_RBTouchScale].is_active()) {
|
||||
games::rb::TOUCH_SCALING = options[launcher::Options::spice2x_RBTouchScale].value_uint32();
|
||||
}
|
||||
if (options[launcher::Options::RBTouchSize].is_active()) {
|
||||
const auto text = options[launcher::Options::RBTouchSize].value_text();
|
||||
if (text == "3") {
|
||||
games::rb::TOUCH_SIZE = 3;
|
||||
}
|
||||
}
|
||||
if (options[launcher::Options::RBTouchPollRate].is_active()) {
|
||||
games::rb::TOUCH_POLL_RATE = options[launcher::Options::RBTouchPollRate].value_uint32();
|
||||
}
|
||||
|
||||
if (options[launcher::Options::spice2x_AsioForceUnload].value_bool()) {
|
||||
hooks::audio::ASIO_FORCE_UNLOAD_ON_STOP = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user