Bluetooth HID mouse vertical movement inverted
HID usage spec defines the Z axis values as:
"A linear translation in the Z direction. Report values should increase
as the control’s position is moved from high to low (Z)."
Bug: 243491520
Change-Id: Ibb9c6b6b9fafff490243a629a438ce28dd0cf607
Test: sl4a
diff --git a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothHidDeviceFacade.java b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothHidDeviceFacade.java
index ba61ded..4e9b238 100644
--- a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothHidDeviceFacade.java
+++ b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothHidDeviceFacade.java
@@ -151,9 +151,9 @@
// HID mouse movement
private static final byte[] RIGHT = {0, 1, 0, 0};
- private static final byte[] DOWN = {0, 0, -1, 0};
+ private static final byte[] DOWN = {0, 0, 1, 0};
private static final byte[] LEFT = {0, -1, 0, 0};
- private static final byte[] UP = {0, 0, 1, 0};
+ private static final byte[] UP = {0, 0, -1, 0};
// Default values.
private static final int QOS_TOKEN_RATE = 800; // 9 bytes * 1000000 us / 11250 us