diff --git a/src/spice2x/launcher/options.cpp b/src/spice2x/launcher/options.cpp index 3961255..2880a50 100644 --- a/src/spice2x/launcher/options.cpp +++ b/src/spice2x/launcher/options.cpp @@ -1532,9 +1532,9 @@ static const std::vector OPTION_DEFINITIONS = { .category = "Touch Parameters", }, { - .title = "Invert Raw Input Touch", + .title = "Invert Touch", .name = "touchinvert", - .desc = "Inverts raw touch coordinates; only works for default raw input handler, " + .desc = "Inverts touch coordinates; only works for default raw input handler and IIDX/SDVX native touch handler," "and not Windows Touch API.", .type = OptionType::Bool, .category = "Touch Parameters", diff --git a/src/spice2x/misc/nativetouchhook.cpp b/src/spice2x/misc/nativetouchhook.cpp index 8441653..ac9d256 100644 --- a/src/spice2x/misc/nativetouchhook.cpp +++ b/src/spice2x/misc/nativetouchhook.cpp @@ -92,6 +92,10 @@ namespace nativetouchhook { } } + if (rawinput::touch::INVERTED) { + flip_values = !flip_values; + } + for (size_t i = 0; i < cInputs; i++) { PTOUCHINPUT point = &pInputs[i];