Skip to content

Commit

Permalink
update VoodooI2CHID
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandred committed Sep 26, 2018
1 parent 7c41b74 commit e0f5ab2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Multitouch Support/Native/VoodooI2CMT2SimulatorDevice.cpp
Expand Up @@ -94,10 +94,10 @@ void VoodooI2CMT2SimulatorDevice::constructReportGated(VoodooI2CMultitouchEvent&
SInt16 x_min = 3678;
SInt16 y_min = 2479;

IOFixed scaled_x = (((transducer->coordinates.x.value() / factor_x) * 1.0f) / engine->interface->logical_max_x) * 7612;
IOFixed scaled_y = (((transducer->coordinates.y.value() / factor_y) * 1.0f) / engine->interface->logical_max_y) * 5065;
IOFixed scaled_x = (((transducer->coordinates.x.value()) * 1.0f / factor_x) / engine->interface->logical_max_x) * 7612;
IOFixed scaled_y = (((transducer->coordinates.y.value()) * 1.0f / factor_y) / engine->interface->logical_max_y) * 5065;

IOFixed scaled_old_x = (((transducer->coordinates.x.last.value / factor_x)* 1.0f) / engine->interface->logical_max_x) * 7612;
IOFixed scaled_old_x = (((transducer->coordinates.x.last.value)* 1.0f / factor_x) / engine->interface->logical_max_x) * 7612;
uint8_t scaled_old_x_truncated = scaled_old_x;

new_touch_state[i]++;
Expand Down
2 changes: 1 addition & 1 deletion VoodooI2C Satellites/VoodooI2CHID
2 changes: 1 addition & 1 deletion version.txt
@@ -1 +1 @@
v2.1.1
v2.1.2

0 comments on commit e0f5ab2

Please sign in to comment.