Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Belyaev committed Aug 11, 2019
1 parent 0176737 commit bfbbd5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VoodooInput/VoodooInputMultitouch/VoodooInputTransducer.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct VoodooInputTransducer {
bool isPhysicalButtonDown;
bool isTransducerActive;

TouchCoordinates currentCordinates;
TouchCoordinates currentCoordinates;
TouchCoordinates previousCoordinates;

UInt32 maxPressure;
Expand Down
10 changes: 5 additions & 5 deletions VoodooInput/VoodooInputSimulator/VoodooInputSimulatorDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ void VoodooInputSimulatorDevice::constructReportGated(VoodooInputEvent& multitou
SInt16 x_min = 3678;
SInt16 y_min = 2479;

IOFixed scaled_x = ((transducer->currentCordinates.x * 1.0f) / engine->getLogicalMaxX()) * MT2_MAX_X;
IOFixed scaled_y = ((transducer->currentCordinates.y * 1.0f) / engine->getLogicalMaxY()) * MT2_MAX_Y;
IOFixed scaled_x = ((transducer->currentCoordinates.x * 1.0f) / engine->getLogicalMaxX()) * MT2_MAX_X;
IOFixed scaled_y = ((transducer->currentCoordinates.y * 1.0f) / engine->getLogicalMaxY()) * MT2_MAX_Y;

if (scaled_x < 1 && scaled_y >= MT2_MAX_Y) {
is_error_input_active = true;
Expand All @@ -123,8 +123,8 @@ void VoodooInputSimulatorDevice::constructReportGated(VoodooInputEvent& multitou

if (transform) {
if (transform & kIOFBSwapAxes) {
scaled_x = ((transducer->currentCordinates.y * 1.0f) / engine->getLogicalMaxY()) * MT2_MAX_X;
scaled_y = ((transducer->currentCordinates.x * 1.0f) / engine->getLogicalMaxX()) * MT2_MAX_Y;
scaled_x = ((transducer->currentCoordinates.y * 1.0f) / engine->getLogicalMaxY()) * MT2_MAX_X;
scaled_y = ((transducer->currentCoordinates.x * 1.0f) / engine->getLogicalMaxX()) * MT2_MAX_Y;
}

if (transform & kIOFBInvertX) {
Expand Down Expand Up @@ -203,7 +203,7 @@ void VoodooInputSimulatorDevice::constructReportGated(VoodooInputEvent& multitou
}


if (transducer->currentCordinates.pressure || (input_report.Button)) {
if (transducer->currentCoordinates.pressure || (input_report.Button)) {
finger_data.Pressure = 120;
}

Expand Down

0 comments on commit bfbbd5e

Please sign in to comment.