Proper fix for mouse wheel inversion.
This commit is contained in:
@@ -471,7 +471,7 @@ mouse_subtract_z(int *delta_z, int min, int max, int invert)
|
|||||||
*delta_z = min;
|
*delta_z = min;
|
||||||
real_z += ABS(min);
|
real_z += ABS(min);
|
||||||
} else {
|
} else {
|
||||||
*delta_z = mouse_z;
|
*delta_z = real_z;
|
||||||
real_z = 0;
|
real_z = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -96,7 +96,6 @@ ps2_report_coordinates(atkbc_dev_t *dev, int main)
|
|||||||
kbc_at_dev_queue_add(dev, buff[1], main);
|
kbc_at_dev_queue_add(dev, buff[1], main);
|
||||||
kbc_at_dev_queue_add(dev, buff[2], main);
|
kbc_at_dev_queue_add(dev, buff[2], main);
|
||||||
if (dev->flags & FLAG_INTMODE) {
|
if (dev->flags & FLAG_INTMODE) {
|
||||||
delta_z = -delta_z;
|
|
||||||
delta_z &= 0x0f;
|
delta_z &= 0x0f;
|
||||||
|
|
||||||
if (dev->flags & FLAG_5BTN) {
|
if (dev->flags & FLAG_5BTN) {
|
||||||
|
Reference in New Issue
Block a user