Skip to content

Commit

Permalink
[Update] 6.3.0 - Fix IOHIDSystem -> IOHIDFamily
Browse files Browse the repository at this point in the history
  • Loading branch information
realizelol committed Jan 15, 2022
1 parent d82ae5f commit 33fbb3d
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 29 deletions.
32 changes: 16 additions & 16 deletions VoodooPS2Controller.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
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.2.0;
CURRENT_PROJECT_VERSION = 6.3.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.2.0;
MODULE_VERSION = 6.3.0;
ONLY_ACTIVE_ARCH = YES;
"OTHER_LDFLAGS[arch=x86_64]" = "-dead_strip";
PRODUCT_NAME = VoodooPS2Controller;
Expand Down Expand Up @@ -569,7 +569,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CURRENT_PROJECT_VERSION = 6.2.0;
CURRENT_PROJECT_VERSION = 6.3.0;
DEBUG_INFORMATION_FORMAT = dwarf;
DEPLOYMENT_POSTPROCESSING = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -591,7 +591,7 @@
LLVM_LTO = YES_THIN;
"LLVM_LTO[arch=x86_64]" = YES_THIN;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MODULE_VERSION = 6.2.0;
MODULE_VERSION = 6.3.0;
ONLY_ACTIVE_ARCH = YES;
"OTHER_LDFLAGS[arch=x86_64]" = "-dead_strip";
PRODUCT_NAME = VoodooPS2Controller;
Expand All @@ -605,11 +605,11 @@
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 6.2.0;
CURRENT_PROJECT_VERSION = 6.3.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Controller/VoodooPS2Controller-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Controller/VoodooPS2Controller-Info.plist";
MARKETING_VERSION = 6.2.0;
MARKETING_VERSION = 6.3.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Controller;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Controller;
Expand All @@ -626,11 +626,11 @@
CLANG_ENABLE_OBJC_WEAK = YES;
CODE_SIGN_IDENTITY = "";
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 6.2.0;
CURRENT_PROJECT_VERSION = 6.3.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Controller/VoodooPS2Controller-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Controller/VoodooPS2Controller-Info.plist";
MARKETING_VERSION = 6.2.0;
MARKETING_VERSION = 6.3.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Controller;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Controller;
Expand All @@ -648,11 +648,11 @@
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;
CURRENT_PROJECT_VERSION = 6.3.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Keyboard/VoodooPS2Keyboard-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Keyboard/VoodooPS2Keyboard-Info.plist";
MARKETING_VERSION = 6.2.0;
MARKETING_VERSION = 6.3.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Keyboard;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Keyboard;
Expand All @@ -669,11 +669,11 @@
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;
CURRENT_PROJECT_VERSION = 6.3.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Keyboard/VoodooPS2Keyboard-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Keyboard/VoodooPS2Keyboard-Info.plist";
MARKETING_VERSION = 6.2.0;
MARKETING_VERSION = 6.3.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Keyboard;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Keyboard;
Expand All @@ -690,11 +690,11 @@
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;
CURRENT_PROJECT_VERSION = 6.3.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Trackpad/VoodooPS2Trackpad-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Trackpad/VoodooPS2Trackpad-Info.plist";
MARKETING_VERSION = 6.2.0;
MARKETING_VERSION = 6.3.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Trackpad;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Trackpad;
Expand All @@ -711,11 +711,11 @@
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;
CURRENT_PROJECT_VERSION = 6.3.0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "VoodooPS2Trackpad/VoodooPS2Trackpad-Prefix.pch";
INFOPLIST_FILE = "VoodooPS2Trackpad/VoodooPS2Trackpad-Info.plist";
MARKETING_VERSION = 6.2.0;
MARKETING_VERSION = 6.3.0;
MODULE_NAME = com.rehabman.driver.VoodooPS2Trackpad;
OTHER_CFLAGS = "-fno-stack-protector";
PRODUCT_BUNDLE_IDENTIFIER = org.rehabman.voodoo.driver.PS2Trackpad;
Expand Down
2 changes: 1 addition & 1 deletion VoodooPS2Keyboard/VoodooPS2Keyboard-Breakless-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOHIDSystem</key>
<key>com.apple.iokit.IOHIDFamily</key>
<string>1.1</string>
<key>com.apple.kpi.bsd</key>
<string>8.0.0</string>
Expand Down
2 changes: 1 addition & 1 deletion VoodooPS2Keyboard/VoodooPS2Keyboard-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOHIDSystem</key>
<key>com.apple.iokit.IOHIDFamily</key>
<string>1.1</string>
<key>com.apple.kpi.bsd</key>
<string>8.0.0</string>
Expand Down
2 changes: 1 addition & 1 deletion VoodooPS2Keyboard/VoodooPS2Keyboard-RemapFN-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOHIDSystem</key>
<key>com.apple.iokit.IOHIDFamily</key>
<string>1.1</string>
<key>com.apple.kpi.bsd</key>
<string>8.0.0</string>
Expand Down
12 changes: 6 additions & 6 deletions VoodooPS2Keyboard/VoodooPS2Keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// #endif

#include <IOKit/IOLib.h>
#include <IOKit/hidsystem/IOHIDParameter.h>
#include <IOKit/HIDFamily/IOHIDParameter.h>
#include <IOKit/pwr_mgt/IOPM.h>
#include <IOKit/pwr_mgt/RootDomain.h>
#include <IOKit/IOTimerEventSource.h>
Expand All @@ -37,7 +37,7 @@
#include "VoodooPS2Keyboard.h"
#include "ApplePS2ToADBMap.h"
#include "AppleACPIPS2Nub.h"
#include <IOKit/hidsystem/ev_keymap.h>
#include <IOKit/HIDFamily/ev_keymap.h>
#include <libkern/version.h>

//REVIEW: avoids problem with Xcode 5.1.0 where -dead_strip eliminates these required symbols
Expand Down Expand Up @@ -85,7 +85,7 @@

// Constants for other services to communicate with

#define kIOHIDSystem "IOHIDSystem"
#define kIOHIDFamily "IOHIDFamily"

// =============================================================================
// ApplePS2Keyboard Class Implementation
Expand Down Expand Up @@ -942,7 +942,7 @@ void ApplePS2Keyboard::setParamPropertiesGated(OSDictionary * dict)
xml = OSDynamicCast(OSBoolean, dict->getObject(kUseISOLayoutKeyboard));
if (xml) {
if (xml->isTrue()) {
_PS2ToADBMap[0x29] = _PS2ToADBMapMapped[0x56]; //Europe2 '¤º'
_PS2ToADBMap[0x29] = _PS2ToADBMapMapped[0x56]; //Europe2 '��'
_PS2ToADBMap[0x56] = _PS2ToADBMapMapped[0x29]; //Grave '~'
}
else {
Expand Down Expand Up @@ -1747,8 +1747,8 @@ bool ApplePS2Keyboard::dispatchKeyboardEventWithPacket(const UInt8* packet)
break;
if (_fkeymodesupported)
{
// modify HIDFKeyMode via IOService... IOHIDSystem
if (IOService* service = IOService::waitForMatchingService(serviceMatching(kIOHIDSystem), 0))
// modify HIDFKeyMode via IOService... IOHIDFamily
if (IOService* service = IOService::waitForMatchingService(serviceMatching(kIOHIDFamily), 0))
{
const OSObject* num = OSNumber::withNumber(!_fkeymode, 32);
const OSString* key = OSString::withCString(kHIDFKeyMode);
Expand Down
2 changes: 1 addition & 1 deletion VoodooPS2Keyboard/VoodooPS2Keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <libkern/c++/OSBoolean.h>
#include "ApplePS2KeyboardDevice.h"
#include <IOKit/hidsystem/IOHIKeyboard.h>
#include <IOKit/HIDFamily/IOHIKeyboard.h>
#include <IOKit/acpi/IOACPIPlatformDevice.h>
#include <IOKit/IOCommandGate.h>

Expand Down
2 changes: 1 addition & 1 deletion VoodooPS2Trackpad/VoodooPS2TouchPadBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

#include <IOKit/IOLib.h>
#include <IOKit/hidsystem/IOHIDParameter.h>
#include <IOKit/HIDFamily/IOHIDParameter.h>
#include <IOKit/IOWorkLoop.h>
#include <IOKit/IOTimerEventSource.h>
#include "VoodooPS2Controller.h"
Expand Down
2 changes: 1 addition & 1 deletion VoodooPS2Trackpad/VoodooPS2TouchPadBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "ApplePS2MouseDevice.h"
#include <IOKit/IOTimerEventSource.h>
#include <IOKit/hidsystem/IOHIPointing.h>
#include <IOKit/HIDFamily/IOHIPointing.h>
#include <IOKit/IOCommandGate.h>
#include "Decay.h"

Expand Down
2 changes: 1 addition & 1 deletion VoodooPS2Trackpad/VoodooPS2Trackpad-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOHIDSystem</key>
<key>com.apple.iokit.IOHIDFamily</key>
<string>1.0.0b1</string>
<key>com.apple.kpi.iokit</key>
<string>9.0.0</string>
Expand Down

0 comments on commit 33fbb3d

Please sign in to comment.