全志 修改KEY Patch
修改按键KEY GPIO 和 鼠标返回 Patch
1.modify support adc key and mouse btnright as backdiff --git a/android/device/softwinner/t3-p1/configs/sunxi-keyboard.kl b/android/device/softwinner/t3-p1/configs/sunxi
index ab2051a..548b811 100755
--- a/android/device/softwinner/t3-p1/configs/sunxi-keyboard.kl
+++ b/android/device/softwinner/t3-p1/configs/sunxi-keyboard.kl
@@ -2,5 +2,7 @@ key 115 VOLUME_UPkey 114 VOLUME_DOWNkey 28 ENTERkey 102 HOME
-key 139 MENU
-
+key 105 DPAD_LEFT
+key 106 DPAD_RIGHT
+key 116 POWER
+key 158 BACK
\ No newline at end of file
diff --git a/android/frameworks/native/services/inputflinger/InputReader.cpp b/android/frameworks/native/services/inpu
index fb029fc..32bd8f4 100755
--- a/android/frameworks/native/services/inputflinger/InputReader.cpp
+++ b/android/frameworks/native/services/inputflinger/InputReader.cpp
@@ -1250,7 +1250,8 @@ uint32_t CursorButtonAccumulator::getButtonState() const {result |= AMOTION_EVENT_BUTTON_PRIMARY;}if (mBtnRight) {
- result |= AMOTION_EVENT_BUTTON_SECONDARY;
+ // result |= AMOTION_EVENT_BUTTON_SECONDARY;
+ result |= AMOTION_EVENT_BUTTON_BACK;}if (mBtnMiddle) {result |= AMOTION_EVENT_BUTTON_TERTIARY;
diff --git a/lichee/linux-3.10/arch/arm/boot/dts/sun8iw11p1.dtsi b/lichee/linux-3.10/arch/arm/boot/dts/sun8iw11p1.dtsi
index 47232e5..db8d122 100755
--- a/lichee/linux-3.10/arch/arm/boot/dts/sun8iw11p1.dtsi
+++ b/lichee/linux-3.10/arch/arm/boot/dts/sun8iw11p1.dtsi
@@ -1762,12 +1762,13 @@reg = <0x0 0x01c24400 0x0 0x400>;interrupts = ;status = "okay";
- key_cnt = ;
- key1 = <240 115>;
- key2 = <500 114>;
- key3 = <700 139>;
- key4 = <890 28>;
- key5 = <2000 102>;
+ key_cnt = ;
+ key1 = <240 114>;
+ key2 = <320 106>;
+ key3 = <704 105>;
+ key4 = <1024 158>;
+ key5 = <1280 115>;
+ key6 = <1536 28>;};keypad0:keypad{compatible = "allwinner,keypad";
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
