Skip to content

Commit

Permalink
Update to 6.2.0 Systemsettings are now also working..
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris authored and Chris committed Jul 4, 2020
1 parent aa15e40 commit d82ae5f
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 54 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ Lots of code cleanups, refactoring.
Clean up the IOLog.


## I don't know what I've done but the hung up after a key press was released.
## But --> you don't have any settings in systemsettings -> touchpad.
# SET QuietTimeAfterTyping to 0 than this stupid delay after releasing
# CTRL + ALT + SUPER (WinKey)

## Settings are working sometimes .. I've raised the IOProbeScore to 8000
## But maybe we should set it to 1500 like it's set in:
## https://github.com/acidanthera/VoodooPS2/blob/master/VoodooPS2Trackpad/VoodooPS2Trackpad-Info.plist#L32
## for ALPS GlidePoint // 6000 seems to be for Synaptics..

# THANKS TO [1Revenger1](https://github.com/1Revenger1/VoodooPS2-Alps/)
46 changes: 28 additions & 18 deletions VoodooPS2Controller.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 48;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -353,7 +353,7 @@
ORGANIZATIONNAME = rehabman;
};
buildConfigurationList = 8416780B161B55B2002C60E6 /* Build configuration list for PBXProject "VoodooPS2Controller" */;
compatibilityVersion = "Xcode 11.0";
compatibilityVersion = "Xcode 8.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
Expand Down Expand Up @@ -513,7 +513,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CURRENT_PROJECT_VERSION = 6.0.0;
CURRENT_PROJECT_VERSION = 6.2.0;
DEBUG_INFORMATION_FORMAT = dwarf;
DEPLOYMENT_LOCATION = NO;
DEPLOYMENT_POSTPROCESSING = YES;
Expand All @@ -538,7 +538,7 @@
LLVM_LTO = YES_THIN;
"LLVM_LTO[arch=x86_64]" = YES_THIN;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MODULE_VERSION = 6.0.0;
MODULE_VERSION = 6.2.0;
ONLY_ACTIVE_ARCH = YES;
"OTHER_LDFLAGS[arch=x86_64]" = "-dead_strip";
PRODUCT_NAME = VoodooPS2Controller;
Expand Down Expand Up @@ -569,14 +569,18 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CURRENT_PROJECT_VERSION = 6.0.0;
CURRENT_PROJECT_VERSION = 6.2.0;
DEBUG_INFORMATION_FORMAT = dwarf;
DEPLOYMENT_POSTPROCESSING = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = NO;
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = fast;
GCC_PREPROCESSOR_DEFINITIONS = (
"MACH_ASSERT=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
Expand All @@ -587,7 +591,7 @@
LLVM_LTO = YES_THIN;
"LLVM_LTO[arch=x86_64]" = YES_THIN;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MODULE_VERSION = 6.0.0;
MODULE_VERSION = 6.2.0;
ONLY_ACTIVE_ARCH = YES;
"OTHER_LDFLAGS[arch=x86_64]" = "-dead_strip";
PRODUCT_NAME = VoodooPS2Controller;
Expand All @@ -601,12 +605,11 @@
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 6.1.0;
CURRENT_PROJECT_VERSION = 6.2.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Controller/VoodooPS2Controller-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Controller/VoodooPS2Controller-Info.plist";
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 6.1.0;
MARKETING_VERSION = 6.2.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Controller;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Controller;
Expand All @@ -623,12 +626,11 @@
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 6.1.0;
CURRENT_PROJECT_VERSION = 6.2.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Controller/VoodooPS2Controller-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Controller/VoodooPS2Controller-Info.plist";
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 6.1.0;
MARKETING_VERSION = 6.2.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Controller;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Controller;
Expand All @@ -643,12 +645,14 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/VoodooPS2Controller.kext/Contents/PlugIns";
CURRENT_PROJECT_VERSION = 6.2.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Keyboard/VoodooPS2Keyboard-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Keyboard/VoodooPS2Keyboard-Info.plist";
MARKETING_VERSION = 6.2.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Keyboard;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Keyboard;
Expand All @@ -662,12 +666,14 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/VoodooPS2Controller.kext/Contents/PlugIns";
CURRENT_PROJECT_VERSION = 6.2.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Keyboard/VoodooPS2Keyboard-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Keyboard/VoodooPS2Keyboard-Info.plist";
MARKETING_VERSION = 6.2.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Keyboard;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Keyboard;
Expand All @@ -681,12 +687,14 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/VoodooPS2Controller.kext/Contents/PlugIns";
CURRENT_PROJECT_VERSION = 6.2.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Trackpad/VoodooPS2Trackpad-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Trackpad/VoodooPS2Trackpad-Info.plist";
MARKETING_VERSION = 6.2.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Trackpad;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Trackpad;
Expand All @@ -700,12 +708,14 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/VoodooPS2Controller.kext/Contents/PlugIns";
CURRENT_PROJECT_VERSION = 6.2.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Trackpad/VoodooPS2Trackpad-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Trackpad/VoodooPS2Trackpad-Info.plist";
MARKETING_VERSION = 6.2.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Trackpad;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Trackpad;
Expand All @@ -719,7 +729,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "";
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand All @@ -729,7 +739,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_IDENTITY = "";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
Expand Down
4 changes: 2 additions & 2 deletions VoodooPS2Keyboard/VoodooPS2Keyboard-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>${MODULE_VERSION}</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${MODULE_VERSION}</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>IOKitPersonalities</key>
<dict>
<key>ApplePS2Keyboard</key>
Expand Down
48 changes: 24 additions & 24 deletions VoodooPS2Trackpad/VoodooPS2Trackpad-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,31 @@
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>${MODULE_VERSION}</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${MODULE_VERSION}</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>IOKitPersonalities</key>
<dict>
<key>ALPS TouchPad</key>
<dict>
<key>SupportsGestureScrolling</key>
<true/>
<key>TrackpadFourFingerGestures</key>
<key>ApplePreferenceCapability</key>
<true/>
<key>ApplePreferenceIdentifier</key>
<string>com.apple.AppleMultitouchTrackpad</string>
<key>MTHIDDevice</key>
<true/>
<key>MT Built-in</key>
<true/>
<key>ApplePreferenceCapability</key>
<true/>
<key>TrackpadEmbedded</key>
<true/>
<key>TrackpadThreeFingerDrag</key>
<false/>
<key>TrackpadSecondaryClickCorners</key>
<true/>
<key>CFBundleIdentifier</key>
<string>org.rehabman.voodoo.driver.PS2Trackpad</string>
<key>IOClass</key>
<string>ALPS</string>
<key>IOProbeScore</key>
<integer>6000</integer>
<integer>8000</integer>
<key>IOProviderClass</key>
<string>ApplePS2MouseDevice</string>
<key>MT Built-in</key>
<true/>
<key>MTHIDDevice</key>
<true/>
<key>Platform Profile</key>
<dict>
<key>Default</key>
Expand All @@ -74,6 +64,8 @@
<integer>5</integer>
<key>DivisorY</key>
<integer>5</integer>
<key>DoubleSmoothness</key>
<true/>
<key>DoubleTapThresholdX</key>
<integer>100</integer>
<key>DoubleTapThresholdY</key>
Expand All @@ -82,8 +74,6 @@
<integer>1000000000</integer>
<key>DragLockTempMask</key>
<integer>1048592</integer>
<key>DoubleSmoothness</key>
<true/>
<key>EdgeBottom</key>
<integer>500</integer>
<key>EdgeLeft</key>
Expand Down Expand Up @@ -119,17 +109,17 @@
<key>MultiFingerVerticalDivisor</key>
<integer>5</integer>
<key>QuietTimeAfterTyping</key>
<integer>500000000</integer>
<integer>0</integer>
<key>Resolution</key>
<integer>400</integer>
<key>ScrollDeltaThreshX</key>
<integer>0</integer>
<key>ScrollDeltaThreshY</key>
<integer>0</integer>
<key>ScrollResolution</key>
<integer>400</integer>
<key>ScrollExitDelayTime</key>
<integer>10000</integer>
<key>ScrollResolution</key>
<integer>400</integer>
<key>SmoothInput</key>
<true/>
<key>StickyHorizontalScrolling</key>
Expand All @@ -149,7 +139,7 @@
<key>TapThresholdY</key>
<integer>50</integer>
<key>USBMouseStopsTrackpad</key>
<integer>0</integer>
<integer>1</integer>
<key>UnitsPerMMX</key>
<integer>50</integer>
<key>UnitsPerMMY</key>
Expand All @@ -174,6 +164,16 @@
</dict>
<key>ProductID</key>
<integer>547</integer>
<key>SupportsGestureScrolling</key>
<true/>
<key>TrackpadEmbedded</key>
<true/>
<key>TrackpadFourFingerGestures</key>
<false/>
<key>TrackpadSecondaryClickCorners</key>
<false/>
<key>TrackpadThreeFingerDrag</key>
<false/>
<key>VendorID</key>
<integer>1452</integer>
</dict>
Expand Down
18 changes: 10 additions & 8 deletions VoodooPS2Trackpad/alps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "alps.h"

enum {
kTapEnabled = 0x00
kTapEnabled = 0x01
};

#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
Expand Down Expand Up @@ -112,7 +112,7 @@ static const struct alps_nibble_commands alps_v6_nibble_commands[] = {
#define ALPS_BUTTONPAD 0x200 /* device is a clickpad */
#define ALPS_DUALPOINT_WITH_PRESSURE 0x400 /* device can report trackpoint pressure */

// delete APLS_DUALPOINT here?

static const struct alps_model_info alps_model_data[] = {
{ { 0x32, 0x02, 0x14 }, 0x00, ALPS_PROTO_V2, 0xf8, 0xf8, ALPS_PASS | ALPS_DUALPOINT },
/* Toshiba Salellite Pro M10 */
Expand Down Expand Up @@ -145,6 +145,8 @@ static const struct alps_model_info alps_model_data[] = {
ALPS_PASS | ALPS_DUALPOINT | ALPS_PS2_INTERLEAVED },
/* Toshiba Tecra A11-11L */
{ { 0x73, 0x02, 0x64 }, 0x8a, ALPS_PROTO_V4, 0x8f, 0x8f, 0 },
/* Dell Precision M4700 / Latitude E6450 */
{ { 0x73, 0x03, 0x0a }, 0x1d, ALPS_PROTO_V3_RUSHMORE, 0x00, 0x00, 0 },
};

// =============================================================================
Expand Down Expand Up @@ -237,7 +239,7 @@ bool ALPS::init(OSDictionary *dict) {
dragging=true;
scroll=true;
hscroll=true;
momentumscroll=false;
momentumscroll=true;
outzone_wt=palm=palm_wt=false;

return true;
Expand Down Expand Up @@ -2817,13 +2819,13 @@ void ALPS::dispatchEventsWithInfo(int xraw, int yraw, int z, int fingers, UInt32
}

// deal with "OutsidezoneNoAction When Typing"
//if (outzone_wt && z > z_finger && now_ns - keytime < maxaftertyping &&
// (x < zonel || x > zoner || y < zoneb || y > zonet)) {
// DEBUG_LOG("Ignore touch input after typing\n");
if (outzone_wt && z > z_finger && now_ns - keytime < maxaftertyping &&
(x < zonel || x > zoner || y < zoneb || y > zonet)) {
DEBUG_LOG("Ignore touch input after typing\n");
// touch input was shortly after typing and outside the "zone"
// ignore it...
// return;
//}
return;
}

// if trackpad input is supposed to be ignored, then don't do anything
if (ignoreall) {
Expand Down

0 comments on commit d82ae5f

Please sign in to comment.