Skip to content

Commit

Permalink
Updated building
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Feb 20, 2020
1 parent ffc398e commit a4dd28e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
4 changes: 2 additions & 2 deletions VoodooPS2Controller.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
LLVM_LTO = YES_THIN;
"LLVM_LTO[arch=x86_64]" = YES_THIN;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MODULE_VERSION = 6.0.0;
ONLY_ACTIVE_ARCH = YES;
"OTHER_LDFLAGS[arch=x86_64]" = "-dead_strip";
Expand Down Expand Up @@ -586,7 +586,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
LLVM_LTO = YES_THIN;
"LLVM_LTO[arch=x86_64]" = YES_THIN;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MODULE_VERSION = 6.0.0;
ONLY_ACTIVE_ARCH = YES;
"OTHER_LDFLAGS[arch=x86_64]" = "-dead_strip";
Expand Down
24 changes: 21 additions & 3 deletions VoodooPS2Trackpad/alps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,27 @@ int ALPS::alps_process_bitmap(struct alps_data *priv,

fields->mt[0] = fields->st;
fields->mt[1] = corner[priv->second_touch];

//IOLog("ALPS: Process Bitmap, Corner=%d, Fingers=%d, x1=%d, x2=%d, y1=%d, y2=%d\n", priv->second_touch, fingers, fields->mt[0].x, fields->mt[1].x, fields->mt[0].y, fields->mt[1].y);
return fingers;

#if DEBUG
IOLog("ALPS: BITMAP\n");

unsigned int ymap = fields->y_map;

for (int i = 0; ymap != 0; i++, ymap >>= 1) {
unsigned int xmap = fields->x_map;
char bitLog[160];
strlcpy(bitLog, "ALPS: ", sizeof("ALPS: ") + 1);

for (int j = 0; xmap != 0; j++, xmap >>= 1) {
strcat(bitLog, (ymap & 1 && xmap & 1) ? "1 " : "0 ");
}

IOLog("%s\n", bitLog);
}

IOLog("ALPS: Process Bitmap, Corner=%d, Fingers=%d, x1=%d, x2=%d, y1=%d, y2=%d xmap=%d ymap=%d\n", priv->second_touch, fingers, fields->mt[0].x, fields->mt[1].x, fields->mt[0].y, fields->mt[1].y, fields->x_map, fields->y_map);
#endif // DEBUG
return fingers;
}

void ALPS::alps_process_trackstick_packet_v3(UInt8 *packet) {
Expand Down
8 changes: 6 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ endif

.PHONY: all
all:
xcodebuild build $(OPTIONS) -scheme All -configuration Debug
xcodebuild build $(OPTIONS) -scheme All -configuration Release
xcodebuild build $(OPTIONS) -scheme VoodooPS2Trackpad -configuration Debug
xcodebuild build $(OPTIONS) -scheme VoodooPS2Keyboard -configuration Debug
xcodebuild build $(OPTIONS) -scheme VoodooPS2Controller -configuration Debug
xcodebuild build $(OPTIONS) -scheme VoodooPS2Trackpad -configuration Release
xcodebuild build $(OPTIONS) -scheme VoodooPS2Keyboard -configuration Release
xcodebuild build $(OPTIONS) -scheme VoodooPS2Controller -configuration Release

.PHONY: clean
clean:
Expand Down

0 comments on commit a4dd28e

Please sign in to comment.