mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
inputdevice add AXIS_WHEEL support
This commit is contained in:
parent
2c1cb71b3c
commit
9315ff540d
@ -349,9 +349,10 @@ static int ABS2AXIS(int absaxis){
|
||||
case ABS_RZ:/*REL_RZ*/return MotionEvent::AXIS_RZ;
|
||||
|
||||
case ABS_MT_PRESSURE:
|
||||
case ABS_PRESSURE:return MotionEvent::AXIS_PRESSURE;
|
||||
|
||||
case ABS_WHEEL:/*REL_WHEEL*/ return MotionEvent::AXIS_PRESSURE;
|
||||
case ABS_PRESSURE: return MotionEvent::AXIS_PRESSURE;
|
||||
case ABS_TOOL_WIDTH:
|
||||
case ABS_MT_TOUCH_MAJOR: return MotionEvent::AXIS_SIZE;
|
||||
case ABS_WHEEL:/*REL_WHEEL*/ return MotionEvent::AXIS_WHEEL;
|
||||
default:return -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user