mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
touch: native touch hooks to honor Invert Touch option (#588)
## Link to GitHub Issue or related Pull Request, if one exists For #587 ## Description of change `Invert Touch` option is now honored by the IIDX/SDVX touch handler.
This commit is contained in:
@@ -1532,9 +1532,9 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
|||||||
.category = "Touch Parameters",
|
.category = "Touch Parameters",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.title = "Invert Raw Input Touch",
|
.title = "Invert Touch",
|
||||||
.name = "touchinvert",
|
.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.",
|
"and not Windows Touch API.",
|
||||||
.type = OptionType::Bool,
|
.type = OptionType::Bool,
|
||||||
.category = "Touch Parameters",
|
.category = "Touch Parameters",
|
||||||
|
|||||||
@@ -92,6 +92,10 @@ namespace nativetouchhook {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rawinput::touch::INVERTED) {
|
||||||
|
flip_values = !flip_values;
|
||||||
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i < cInputs; i++) {
|
for (size_t i = 0; i < cInputs; i++) {
|
||||||
PTOUCHINPUT point = &pInputs[i];
|
PTOUCHINPUT point = &pInputs[i];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user