Android触摸屏配置调试

时间:2022-11-25 20:23:54

前几天搞乐蛙时,进入后是鼠标模式,好坑爹的模式有木有~~

但是大蛋给出了解决方法,我不怕不怕啦~让我们向大牛致敬!!!

首先输入Command查看你的input配置~

adb shell dumpsys input

下面给出我设备输出的一部分!!

INPUT MANAGER (dumpsys input)

Event Hub State:
BuiltInKeyboardId: -
Devices:
-: Virtual
Classes: 0x40000023
Path: <virtual>
Descriptor: a718a782d34bc767f4689c232d64d527998ea7fd
Location:
UniqueId: <virtual>
Identifier: bus=0x0000, vendor=0x0000, product=0x0000, version=0x0000
KeyLayoutFile: /system/usr/keylayout/Generic.kl
KeyCharacterMapFile: /system/usr/keychars/Virtual.kcm
ConfigurationFile:
HaveKeyboardLayoutOverlay: false
: 7k_handset
Classes: 0x00000081
Path: /dev/input/event3
Descriptor: 485d69228e24f5e46da1598745890b214130dbc4
Location:
UniqueId:
Identifier: bus=0x0000, vendor=0x0001, product=0x0001, version=0x0001
KeyLayoutFile: /system/usr/keylayout/7k_handset.kl
KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
ConfigurationFile:
HaveKeyboardLayoutOverlay: false
: 7x27a_kp
Classes: 0x00000001
Path: /dev/input/event2
Descriptor: 69d9f17876369ab4fac2735426d3bc23660247c4
Location:
UniqueId:
Identifier: bus=0x0000, vendor=0x0000, product=0x0000, version=0x0000
KeyLayoutFile: /system/usr/keylayout/7x27a_kp.kl
KeyCharacterMapFile: /system/usr/keychars/7x27a_kp.kcm
ConfigurationFile:
HaveKeyboardLayoutOverlay: false
: Fts-touchscreen
Classes: 0x00000015
Path: /dev/input/event1
Descriptor: af69cada3c01369f38b564c8bd34be115723d040
Location:
UniqueId:
Identifier: bus=0x0000, vendor=0x0000, product=0x0000, version=0x0000
KeyLayoutFile: /system/usr/keylayout/Generic.kl
KeyCharacterMapFile: /system/usr/keychars/Generic.kcm
ConfigurationFile: /system/usr/idc/Fts-touchscreen.idc
HaveKeyboardLayoutOverlay: false

从上面可以看到"4: Fts-touchscreen",这货就是我的触摸屏啦(゚∀゚ )

我们看下他的配置文件,就是这货"ConfigurationFile: /system/usr/idc/Fts-touchscreen.idc"

提示下,如果配置文件那显示为空的话,你就直接用你触摸屏的名字就行了,比如我的就是这样!!!

然后我们把官方包里面的/system/usr/idc/Fts-touchscreen.idc给替换过去就搞定了(≧∀≦)~欧耶!

不过凡事都有例外,比如我的,官方包里面就没有这个文件,那你就去CM里面找一个吧~(/ω・\)【【【别找俺,俺是不会发给你的~

把Generic.idc改为Fts-touchscreen.idc然后放进usr里面就OK了!!!(/≧▽≦/)