bug:鼠标滚轮向前向后滚动与系统界面滚动相反
修改:
打开 frameworks/base/services/java/com/android/server/KeyInputQueue.java
修改第789行
将 di.mRel.mNextData[MotionEvent.SAMPLE_Y] += ev.value
@Override
publicboolean onGenericMotionEvent(MotionEventevent){
if(0!=(event.getSource()&InputDevice.SOURCE_CLASS_POINTER)){
switch(event.getAction()){
case MotionEvent.ACTION_SCROLL:
if(event.getAxisValue(MotionEvent.AXIS_VSCROLL)<0.0f)
selectNext()
else
selectPrev();
return true;
}
}
returnsuper.onGenericMotionEvent(event);
}