From 623942d85f4fbb517d81561976a49d4b5ed2aedb Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sat, 22 Feb 2020 03:22:17 +0300 Subject: [PATCH] Fixed interpreting transducer type data --- Changelog.md | 3 +++ VoodooInput.xcodeproj/project.pbxproj | 6 +++--- .../VoodooInputSimulator/VoodooInputSimulatorDevice.cpp | 5 +---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Changelog.md b/Changelog.md index dba93da..ef25651 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,9 @@ VoodooInput Changelog ===================== +#### v1.0.3 +- Fixed interpreting transducer type data + #### v1.0.2 - Minor deployment fixes - Resolved loading issues on some configurations (thx @Sniki) diff --git a/VoodooInput.xcodeproj/project.pbxproj b/VoodooInput.xcodeproj/project.pbxproj index 1420ade..f3b15db 100644 --- a/VoodooInput.xcodeproj/project.pbxproj +++ b/VoodooInput.xcodeproj/project.pbxproj @@ -185,7 +185,7 @@ 7BBAB1F022E3A2F800B2941A /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1120; + LastUpgradeCheck = 1130; ORGANIZATIONNAME = "Kishor Prins"; TargetAttributes = { 7BBAB1F822E3A2F800B2941A = { @@ -380,7 +380,7 @@ "$(PROJECT_DIR)/VoodooInput/Library", ); MODULE_NAME = me.kishorprins.VoodooInput; - MODULE_VERSION = 1.0.2; + MODULE_VERSION = 1.0.3; PRODUCT_BUNDLE_IDENTIFIER = me.kishorprins.VoodooInput; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = kext; @@ -399,7 +399,7 @@ "$(PROJECT_DIR)/VoodooInput/Library", ); MODULE_NAME = me.kishorprins.VoodooInput; - MODULE_VERSION = 1.0.2; + MODULE_VERSION = 1.0.3; PRODUCT_BUNDLE_IDENTIFIER = me.kishorprins.VoodooInput; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = kext; diff --git a/VoodooInput/VoodooInputSimulator/VoodooInputSimulatorDevice.cpp b/VoodooInput/VoodooInputSimulator/VoodooInputSimulatorDevice.cpp index b9d9602..f3a84f9 100644 --- a/VoodooInput/VoodooInputSimulator/VoodooInputSimulatorDevice.cpp +++ b/VoodooInput/VoodooInputSimulator/VoodooInputSimulatorDevice.cpp @@ -46,10 +46,7 @@ void VoodooInputSimulatorDevice::constructReportGated(const VoodooInputEvent& mu const VoodooInputTransducer* transducer = &multitouch_event.transducers[0]; - if (!transducer) - return; - - if (transducer->type == VoodooInputTransducerType::STYLUS) + if (transducer->isValid && transducer->type == VoodooInputTransducerType::STYLUS) stylus_check = 1; // physical button