mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
iidx: delay logic for iidx tt (#669)
## Link to GitHub Issue or related Pull Request, if one exists Re-implements fix for #181 as it was removed by #668 ## Description of change Add two options to add artificial delay to turntable input. These operate directly on the input logic (`get_tt`) which is called by I/O emulation code. Functionally, it's **identical** to the `Delay (experimental)` option we had in the analog tab, just moved to Options tab. ## Testing 64 bit tdj: ok 64 bit ldj bi2a: ok 32 bit ldj ezusb: ok Worth noting that TDJ bi2x_hook polls at 120Hz, bi2a at ~500Hz, and ezusb at ~170Hz
This commit is contained in:
@@ -518,6 +518,12 @@ int main_implementation(int argc, char *argv[]) {
|
||||
if (options[launcher::Options::IIDXTDJMode].value_bool()) {
|
||||
games::iidx::TDJ_MODE = true;
|
||||
}
|
||||
if (options[launcher::Options::IIDXTTDelayP1].is_active()) {
|
||||
games::iidx::TT_DELAY_P1 = options[launcher::Options::IIDXTTDelayP1].value_uint32();
|
||||
}
|
||||
if (options[launcher::Options::IIDXTTDelayP2].is_active()) {
|
||||
games::iidx::TT_DELAY_P2 = options[launcher::Options::IIDXTTDelayP2].value_uint32();
|
||||
}
|
||||
if (options[launcher::Options::spice2x_IIDXDigitalTTSensitivity].is_active()) {
|
||||
games::iidx::DIGITAL_TT_SENS = (uint8_t)
|
||||
options[launcher::Options::spice2x_IIDXDigitalTTSensitivity].value_uint32();
|
||||
|
||||
@@ -655,6 +655,26 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
||||
.game_name = "Beatmania IIDX",
|
||||
.category = "Game Options",
|
||||
},
|
||||
{
|
||||
// IIDXTTDelayP1
|
||||
.title = "IIDX TT Delay Frames (Player 1)",
|
||||
.name = "iidxttdelayp1",
|
||||
.desc = "Delays turntable input by number of poll frames. Heavily dependent on what I/O emulation is in use! "
|
||||
"As usual, changing any option requires a restart. Default: 0 (no delay).",
|
||||
.type = OptionType::Integer,
|
||||
.game_name = "Beatmania IIDX",
|
||||
.category = "Game Options (Advanced)",
|
||||
},
|
||||
{
|
||||
// IIDXTTDelayP2
|
||||
.title = "IIDX TT Delay Frames (Player 2)",
|
||||
.name = "iidxttdelayp2",
|
||||
.desc = "Delays turntable input by number of poll frames. Heavily dependent on what I/O emulation is in use! "
|
||||
"As usual, changing any option requires a restart. Default: 0 (no delay).",
|
||||
.type = OptionType::Integer,
|
||||
.game_name = "Beatmania IIDX",
|
||||
.category = "Game Options (Advanced)",
|
||||
},
|
||||
{
|
||||
// spice2x_IIDXDigitalTTSensitivity
|
||||
.title = "IIDX Digital TT Sensitivity",
|
||||
|
||||
@@ -69,6 +69,8 @@ namespace launcher {
|
||||
IIDXAsioDriver,
|
||||
IIDXBIO2FW,
|
||||
IIDXTDJMode,
|
||||
IIDXTTDelayP1,
|
||||
IIDXTTDelayP2,
|
||||
spice2x_IIDXDigitalTTSensitivity,
|
||||
IIDXDigitalTTSocd,
|
||||
spice2x_IIDXLDJForce720p,
|
||||
|
||||
Reference in New Issue
Block a user